Skip to content

Add documentation for enhanced organization authentication feature#6068

Open
SujanSanjula96 wants to merge 2 commits intowso2:masterfrom
SujanSanjula96:enhanced-b2b-login
Open

Add documentation for enhanced organization authentication feature#6068
SujanSanjula96 wants to merge 2 commits intowso2:masterfrom
SujanSanjula96:enhanced-b2b-login

Conversation

@SujanSanjula96
Copy link
Copy Markdown
Contributor

Purpose

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 16, 2026

📝 Walkthrough

Walkthrough

Added new wrapper documentation pages that set template variables and include shared organization-login guide content, created corresponding shared include files (some placeholders), and updated MkDocs navigation to expose the new guide pages under Guides → Organizations → Enable organization-based login.

Changes

Cohort / File(s) Summary
Documentation wrapper pages
en/identity-server/next/docs/guides/organization-management/organization-login/app-native-authentication.md, en/identity-server/next/docs/guides/organization-management/organization-login/index.md, en/identity-server/next/docs/guides/organization-management/organization-login/legacy-approach.md, en/identity-server/next/docs/guides/organization-management/organization-login/migrate-organization-login.md
Added Jekyll/templated wrapper pages that set host_name to localhost:9443 and organization_path_param to an empty string, then include the corresponding shared include files.
Shared include files
en/includes/guides/organization-management/organization-login/app-native-authentication.md, en/includes/guides/organization-management/organization-login/index.md, en/includes/guides/organization-management/organization-login/legacy-approach.md, en/includes/guides/organization-management/organization-login/migrate-organization-login.md
Added include content for organization-login guides. index.md contains detailed enhanced organization-authentication content; others include legacy guidance or TODO placeholders.
Navigation configuration
en/identity-server/next/mkdocs.yml
Updated MkDocs navigation to add Overview, App Native Authentication, Legacy approach, and Migrate between approaches under Guides → Organizations → Enable organization-based login.

Suggested labels

Team/Authentication & registration, Team/B2B

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The pull request description is incomplete. It contains only a '## Purpose' heading with no actual content, missing required sections like purpose details, related PRs, test environment, and security checks. Complete the description by filling in the Purpose section with details about what this documentation adds, and address other template sections (Related PRs, Test environment, Security checks) as applicable.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: adding documentation for the enhanced organization authentication feature, which aligns with all the file additions in the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (4)
en/includes/guides/organization-management/organization-login/legacy-approach.md (1)

6-6: Complete the documentation content.

This page contains only a placeholder comment and provides no guidance to users.

Do you want me to open an issue to track completion of this documentation?

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In
`@en/includes/guides/organization-management/organization-login/legacy-approach.md`
at line 6, The file
en/includes/guides/organization-management/organization-login/legacy-approach.md
currently contains only a placeholder HTML comment; replace that placeholder by
adding full documentation for the legacy organization login approach in this
file (legacy-approach.md), including: a concise overview of the legacy flow,
step-by-step instructions for users who still use the legacy login, migration
guidance to the new login process, important security considerations, common
troubleshooting Q&A, and links to related docs and APIs; remove the "<!-- TODO:
Add content -->" comment and ensure headings, examples, and any CLI/URL snippets
are accurate and consistent with existing docs conventions.
en/includes/guides/organization-management/organization-login/app-native-authentication.md (1)

3-3: Complete the documentation content.

This page contains only a placeholder comment and provides no guidance to users.

Do you want me to open an issue to track completion of this documentation?

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In
`@en/includes/guides/organization-management/organization-login/app-native-authentication.md`
at line 3, Replace the placeholder comment in app-native-authentication.md with
complete documentation: remove the "<!-- TODO: Add content -->" and add an
overview of native authentication, prerequisites, step-by-step setup
instructions, required configuration fields (example config keys and values),
sample code snippets or CLI commands for integration, common troubleshooting
tips, and links to related guides; ensure the document uses the existing heading
structure and examples consistent with other organization-management guides so
readers can follow end-to-end, and if substantive work remains, create an issue
referencing this document name to track completion.
en/includes/guides/organization-management/organization-login/migrate-organization-login.md (1)

3-3: Complete the documentation content.

This page contains only a placeholder comment and provides no guidance to users.

Do you want me to open an issue to track completion of this documentation?

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In
`@en/includes/guides/organization-management/organization-login/migrate-organization-login.md`
at line 3, The file contains only a placeholder <!-- TODO: Add content --> for
the migrate-organization-login.md guide; replace that placeholder with complete
documentation covering: a short summary of the migration purpose, prerequisites
and permissions, step-by-step migration procedure (including required config
changes, API/CLI commands and expected responses), rollback/validation steps and
common troubleshooting tips, and links to related guides and support channels;
ensure the document title and headings reflect "Migrate Organization Login",
include examples and exact config keys or command names used during migration,
and add a final checklist and contact info for escalation.
en/identity-server/next/mkdocs.yml (1)

900-900: Align nav label style with existing “App-native authentication” wording.

Line 900 uses App Native Authentication, while the main Authentication section uses App-native authentication (Line 694). Consider using one consistent label style across nav for UX/search consistency.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@en/identity-server/next/mkdocs.yml` at line 900, The nav label string "App
Native Authentication" in mkdocs nav should be changed to match the existing
style "App-native authentication" for consistency; locate the nav entry that
references
guides/organization-management/organization-login/app-native-authentication.md
(currently labeled "App Native Authentication") and rename it to "App-native
authentication" so it matches the label used elsewhere (e.g., the Authentication
section label "App-native authentication").
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In
`@en/includes/guides/organization-management/organization-login/app-native-authentication.md`:
- Line 1: The document heading "App Native Authentication for organizations"
should use sentence case; update the heading text (the top-line string) to "App
native authentication for organizations" so only the first word is capitalized
and proper nouns (none here) remain unchanged.

In
`@en/includes/guides/organization-management/organization-login/legacy-approach.md`:
- Line 4: The include references missing Jinja variables product_name and
base_path; add definitions for {% set product_name %} and {% set base_path %} in
the wrapper that loads this include (define product_name as "WSO2 Identity
Server" and base_path as "/guides/organization-management/organization-login"),
and remove the <!-- TODO: Add content --> placeholder from the include once real
content is added so the template variables are resolved and no TODO remains.

---

Nitpick comments:
In `@en/identity-server/next/mkdocs.yml`:
- Line 900: The nav label string "App Native Authentication" in mkdocs nav
should be changed to match the existing style "App-native authentication" for
consistency; locate the nav entry that references
guides/organization-management/organization-login/app-native-authentication.md
(currently labeled "App Native Authentication") and rename it to "App-native
authentication" so it matches the label used elsewhere (e.g., the Authentication
section label "App-native authentication").

In
`@en/includes/guides/organization-management/organization-login/app-native-authentication.md`:
- Line 3: Replace the placeholder comment in app-native-authentication.md with
complete documentation: remove the "<!-- TODO: Add content -->" and add an
overview of native authentication, prerequisites, step-by-step setup
instructions, required configuration fields (example config keys and values),
sample code snippets or CLI commands for integration, common troubleshooting
tips, and links to related guides; ensure the document uses the existing heading
structure and examples consistent with other organization-management guides so
readers can follow end-to-end, and if substantive work remains, create an issue
referencing this document name to track completion.

In
`@en/includes/guides/organization-management/organization-login/legacy-approach.md`:
- Line 6: The file
en/includes/guides/organization-management/organization-login/legacy-approach.md
currently contains only a placeholder HTML comment; replace that placeholder by
adding full documentation for the legacy organization login approach in this
file (legacy-approach.md), including: a concise overview of the legacy flow,
step-by-step instructions for users who still use the legacy login, migration
guidance to the new login process, important security considerations, common
troubleshooting Q&A, and links to related docs and APIs; remove the "<!-- TODO:
Add content -->" comment and ensure headings, examples, and any CLI/URL snippets
are accurate and consistent with existing docs conventions.

In
`@en/includes/guides/organization-management/organization-login/migrate-organization-login.md`:
- Line 3: The file contains only a placeholder <!-- TODO: Add content --> for
the migrate-organization-login.md guide; replace that placeholder with complete
documentation covering: a short summary of the migration purpose, prerequisites
and permissions, step-by-step migration procedure (including required config
changes, API/CLI commands and expected responses), rollback/validation steps and
common troubleshooting tips, and links to related guides and support channels;
ensure the document title and headings reflect "Migrate Organization Login",
include examples and exact config keys or command names used during migration,
and add a final checklist and contact info for escalation.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: 9b033f29-ebc9-439f-8029-5d507b94b662

📥 Commits

Reviewing files that changed from the base of the PR and between 39d3f01 and 38887b8.

📒 Files selected for processing (9)
  • en/identity-server/next/docs/guides/organization-management/organization-login/app-native-authentication.md
  • en/identity-server/next/docs/guides/organization-management/organization-login/index.md
  • en/identity-server/next/docs/guides/organization-management/organization-login/legacy-approach.md
  • en/identity-server/next/docs/guides/organization-management/organization-login/migrate-organization-login.md
  • en/identity-server/next/mkdocs.yml
  • en/includes/guides/organization-management/organization-login/app-native-authentication.md
  • en/includes/guides/organization-management/organization-login/index.md
  • en/includes/guides/organization-management/organization-login/legacy-approach.md
  • en/includes/guides/organization-management/organization-login/migrate-organization-login.md

@@ -0,0 +1,3 @@
# App Native Authentication for organizations
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Apply sentence case to the heading.

The title uses "App Native Authentication" but coding guidelines require sentence case for all headings, capitalizing only the first word and proper nouns. As per coding guidelines: "Use sentence case for all headings and document titles, capitalizing only the first word and proper nouns".

📝 Suggested fix
-# App Native Authentication for organizations
+# App native authentication for organizations
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
# App Native Authentication for organizations
# App native authentication for organizations
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In
`@en/includes/guides/organization-management/organization-login/app-native-authentication.md`
at line 1, The document heading "App Native Authentication for organizations"
should use sentence case; update the heading text (the top-line string) to "App
native authentication for organizations" so only the first word is capitalized
and proper nouns (none here) remain unchanged.

# Organization login - legacy approach

!!! warning "Legacy approach"
This guide describes the **federation-based organization login** approach used in older versions of {{ product_name }}. For new implementations, use the [enhanced organization authentication]({{base_path}}/guides/organization-management/organization-login/) approach instead.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check if product_name and base_path are set in other wrapper files or globally available

echo "=== Checking wrapper files that set product_name or base_path ==="
rg -n "set (product_name|base_path)" --type=md -g '**/docs/**/*.md' -C2

echo ""
echo "=== Checking if variables are used in other include files ==="
rg -n "{{ ?(product_name|base_path)" --type=md -g '**/includes/**/*.md' | head -20

echo ""
echo "=== Checking MkDocs config for global variables ==="
fd -t f "mkdocs.yml" --exec grep -H "extra:" -A10 {}

Repository: wso2/docs-is

Length of output: 50490


🏁 Script executed:

# Check the wrapper file for legacy-approach.md
echo "=== Wrapper file ==="
cat en/identity-server/next/docs/guides/organization-management/organization-login/legacy-approach.md

echo ""
echo "=== Include file ==="
cat en/includes/guides/organization-management/organization-login/legacy-approach.md

Repository: wso2/docs-is

Length of output: 668


Set product_name and base_path template variables in the wrapper file.

The include file references {{ product_name }} and {{base_path}}, but the wrapper file at en/identity-server/next/docs/guides/organization-management/organization-login/legacy-approach.md only defines host_name and organization_path_param. Add the missing variable definitions:

{% set product_name = "WSO2 Identity Server" %}
{% set base_path = "/guides/organization-management/organization-login" %}

Also remove the <!-- TODO: Add content --> placeholder in the include file once content is added.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In
`@en/includes/guides/organization-management/organization-login/legacy-approach.md`
at line 4, The include references missing Jinja variables product_name and
base_path; add definitions for {% set product_name %} and {% set base_path %} in
the wrapper that loads this include (define product_name as "WSO2 Identity
Server" and base_path as "/guides/organization-management/organization-login"),
and remove the <!-- TODO: Add content --> placeholder from the include once real
content is added so the template variables are resolved and no TODO remains.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
en/includes/guides/organization-management/organization-login/index.md (1)

12-12: Address the TODO comment.

The comment indicates a missing screenshot for the Shared Access tab. This visual aid would help users verify the Enhanced Organization Authentication toggle.

Would you like me to open a new issue to track adding this screenshot, or can you confirm the screenshot will be added before merging?

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@en/includes/guides/organization-management/organization-login/index.md` at
line 12, Remove the TODO and add the missing screenshot of the Shared Access tab
that clearly shows the Enhanced Organization Authentication toggle (or, if you
cannot add the image now, create a tracking issue and reference it in place of
the TODO); locate the TODO comment in the organization-login index content where
the Shared Access screenshot is referenced and replace it with the embedded
image markup and alt text describing the Enhanced Organization Authentication
toggle, or replace the TODO with a brief note linking to the newly created issue
so reviewers know the screenshot will be added before/after merge.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@en/includes/guides/organization-management/organization-login/index.md`:
- Line 12: Remove the TODO and add the missing screenshot of the Shared Access
tab that clearly shows the Enhanced Organization Authentication toggle (or, if
you cannot add the image now, create a tracking issue and reference it in place
of the TODO); locate the TODO comment in the organization-login index content
where the Shared Access screenshot is referenced and replace it with the
embedded image markup and alt text describing the Enhanced Organization
Authentication toggle, or replace the TODO with a brief note linking to the
newly created issue so reviewers know the screenshot will be added before/after
merge.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: f5143a23-bbe8-4089-88fd-fa4f44e3f405

📥 Commits

Reviewing files that changed from the base of the PR and between 38887b8 and b5a8165.

📒 Files selected for processing (1)
  • en/includes/guides/organization-management/organization-login/index.md

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

♻️ Duplicate comments (1)
en/includes/guides/organization-management/organization-login/legacy-approach.md (1)

6-6: ⚠️ Potential issue | 🟡 Minor

Remove unresolved TODO placeholder before merge.

Line 6 still contains a placeholder comment with no actionable content. Replace it with finalized documentation or remove it to avoid publishing incomplete guidance.

As per coding guidelines, “no unverified claims, placeholders, or sensitive data appear in examples.”

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In
`@en/includes/guides/organization-management/organization-login/legacy-approach.md`
at line 6, Replace the HTML placeholder comment "<!-- TODO: Add content -->" in
legacy-approach.md (the unresolved TODO on line containing that string) with
finalized documentation or fully remove it; if replacing, provide the actual
organization-login legacy guidance content and ensure there are no unverified
claims, placeholders, or sensitive data in the new text to satisfy the
publishing guidelines.
🧹 Nitpick comments (1)
en/includes/guides/organization-management/organization-login/index.md (1)

6-15: Use one canonical feature name consistently across this page.

This page mixes enhanced organization authentication and Enhanced Organization Authentication. Pick one official form and use it throughout for the same concept.

As per coding guidelines, “Use official product and feature names exactly as defined” and “Use one term per concept.”

Also applies to: 74-76

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@en/includes/guides/organization-management/organization-login/index.md`
around lines 6 - 15, Pick one canonical feature name and use it consistently
across the page: replace all occurrences of the lowercase phrase "enhanced
organization authentication" with the official title-cased "Enhanced
Organization Authentication" (or vice versa if the product doc standard requires
lowercase) so headings, inline text, and links use the same exact string; update
the instances shown in the diff (the paragraph that references the Shared Access
tab) and the other occurrences mentioned (the occurrences around the 74-76 area)
so the page only uses the single chosen form for the feature name.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@en/includes/guides/organization-management/organization-login/index.md`:
- Line 71: Remove the extra blank line causing MD012 by deleting one of the
consecutive empty lines immediately before the "## What's next" section header
in organization-login/index.md so only a single blank line remains directly
above the "## What's next" heading.
- Line 12: Replace the TODO screenshot placeholder in the "Shared Access"
section that references the "Enhanced Organization Authentication toggle" by
either (A) adding the final approved screenshot image and updating the alt
text/caption to avoid any sensitive data, or (B) removing the placeholder
entirely and replacing it with a short textual description of the UI state and
steps to find the toggle; ensure the file content (index.md) contains no
unverified claims or placeholders and that the image/description accurately
matches the UI.

---

Duplicate comments:
In
`@en/includes/guides/organization-management/organization-login/legacy-approach.md`:
- Line 6: Replace the HTML placeholder comment "<!-- TODO: Add content -->" in
legacy-approach.md (the unresolved TODO on line containing that string) with
finalized documentation or fully remove it; if replacing, provide the actual
organization-login legacy guidance content and ensure there are no unverified
claims, placeholders, or sensitive data in the new text to satisfy the
publishing guidelines.

---

Nitpick comments:
In `@en/includes/guides/organization-management/organization-login/index.md`:
- Around line 6-15: Pick one canonical feature name and use it consistently
across the page: replace all occurrences of the lowercase phrase "enhanced
organization authentication" with the official title-cased "Enhanced
Organization Authentication" (or vice versa if the product doc standard requires
lowercase) so headings, inline text, and links use the same exact string; update
the instances shown in the diff (the paragraph that references the Shared Access
tab) and the other occurrences mentioned (the occurrences around the 74-76 area)
so the page only uses the single chosen form for the feature name.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: 6cca4b39-07ea-41f2-b7a9-358442dd80eb

📥 Commits

Reviewing files that changed from the base of the PR and between b5a8165 and 290867e.

📒 Files selected for processing (2)
  • en/includes/guides/organization-management/organization-login/index.md
  • en/includes/guides/organization-management/organization-login/legacy-approach.md

2. Go to the **Shared Access** tab.
3. Check whether **Enhanced Organization Authentication** is enabled.

<!-- TODO: Add screenshot of the Shared Access tab showing the Enhanced Organization Authentication toggle -->
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Replace TODO screenshot placeholder with final content or remove it.

Line 12 leaves incomplete documentation in a user-facing guide.

As per coding guidelines, “no unverified claims, placeholders, or sensitive data appear in examples.”

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@en/includes/guides/organization-management/organization-login/index.md` at
line 12, Replace the TODO screenshot placeholder in the "Shared Access" section
that references the "Enhanced Organization Authentication toggle" by either (A)
adding the final approved screenshot image and updating the alt text/caption to
avoid any sensitive data, or (B) removing the placeholder entirely and replacing
it with a short textual description of the UI state and steps to find the
toggle; ensure the file content (index.md) contains no unverified claims or
placeholders and that the image/description accurately matches the UI.


---


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Fix markdownlint blocker (MD012) by removing the extra blank line.

Line 71 introduces consecutive blank lines, and the pipeline is already failing on this. Keep only a single blank line before ## What's next.

🧰 Tools
🪛 GitHub Actions: Markdown Lint

[error] 71-71: markdownlint-cli2: MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2].

🪛 GitHub Check: lint

[failure] 71-71: Multiple consecutive blank lines
en/includes/guides/organization-management/organization-login/index.md:71 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2] https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md012.md

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@en/includes/guides/organization-management/organization-login/index.md` at
line 71, Remove the extra blank line causing MD012 by deleting one of the
consecutive empty lines immediately before the "## What's next" section header
in organization-login/index.md so only a single blank line remains directly
above the "## What's next" heading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant