Skip to content

Add documentation for configuring the home realm identifier#6037

Merged
DilshanSenarath merged 3 commits intowso2:masterfrom
DilshanSenarath:home-realm-support
Apr 8, 2026
Merged

Add documentation for configuring the home realm identifier#6037
DilshanSenarath merged 3 commits intowso2:masterfrom
DilshanSenarath:home-realm-support

Conversation

@DilshanSenarath
Copy link
Copy Markdown
Contributor

@DilshanSenarath DilshanSenarath commented Apr 6, 2026

Purpose

$subject

Related PRs

Test environment

Security checks

Screenshot

Screenshot 2026-04-06 at 23 20 22

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 6, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: dedb56e0-1c43-463b-af32-9b121c74d2fd

📥 Commits

Reviewing files that changed from the base of the PR and between 643953a and 559a1d7.

📒 Files selected for processing (1)
  • en/includes/guides/authentication/federated-login/index.md
✅ Files skipped from review due to trivial changes (1)
  • en/includes/guides/authentication/federated-login/index.md

📝 Walkthrough

Walkthrough

Conditional rendering in the federated login guide was changed: for product_name == "WSO2 Identity Server" and is_version <= "7.1.0" the guide shows the "Add connections to federation hub" section; for WSO2 Identity Server versions > 7.1.0 the guide shows a new "Configure home realm identifier" section.

Changes

Cohort / File(s) Summary
Federated login guide
en/includes/guides/authentication/federated-login/index.md
Added version gating: include "Add connections to federation hub" only when product_name == "WSO2 Identity Server" and is_version <= "7.1.0"; otherwise render the "Configure home realm identifier" section. Removed a trailing newline marker after the "Delete a connection" include.
Home realm identifier fragment
en/includes/guides/fragments/manage-connection/home-realm-identifier.md
New fragment describing the home realm identifier capability, Console configuration steps (Connections → select connection → Advanced → Home Realm Identifier → Update), an authorization request URL template using the fidp query parameter, and a note that providing fidp bypasses the login page and starts the matching external IdP flow.

Suggested labels

Team/Authentication & registration

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description follows the required template structure but contains incomplete sections: the Purpose section has a placeholder '$subject' instead of actual content, Related PRs and Test environment sections are empty, and security checks are all unchecked. Replace the placeholder with an actual description of the problems/issues being addressed, fill in the Related PRs and Test environment sections with relevant information, and complete the security checklist items or indicate they are not applicable for documentation changes.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: adding documentation for the home realm identifier configuration feature.
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

🤖 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/fragments/manage-connection/home-realm-identifier.md`:
- Around line 17-24: The fenced code block that begins with the
authorization-request URL "https://<host_name>/t/<org_name>/oauth2/authorize?"
should include a language tag; update the opening fence from ``` to ```text so
the snippet is marked as plain text (e.g., change the code block containing the
response_type/client_id/redirect_uri/scope/fidp lines to use ```text).
- Line 11: Remove the inserted image reference line containing "![Home realm
identifier
configuration]({{base_path}}/assets/img/guides/connections/home-realm-identifier.png)"
from manage-connection/home-realm-identifier.md and replace it with a brief,
text-only instruction or step describing the Home Realm Identifier configuration
(e.g., a one-sentence description of what to enter or where to find the setting)
so the task flow contains no new screenshots and remains fully text-based.
🪄 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: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 208abf6f-1f6b-4d9d-b884-7eaa6a165a0d

📥 Commits

Reviewing files that changed from the base of the PR and between 756a098 and 1b8b2f2.

⛔ Files ignored due to path filters (3)
  • en/asgardeo/docs/assets/img/guides/connections/home-realm-identifier.png is excluded by !**/*.png
  • en/identity-server/7.2.0/docs/assets/img/guides/connections/home-realm-identifier.png is excluded by !**/*.png
  • en/identity-server/next/docs/assets/img/guides/connections/home-realm-identifier.png is excluded by !**/*.png
📒 Files selected for processing (2)
  • en/includes/guides/authentication/federated-login/index.md
  • en/includes/guides/fragments/manage-connection/home-realm-identifier.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.

♻️ Duplicate comments (2)
en/includes/guides/fragments/manage-connection/home-realm-identifier.md (2)

11-11: ⚠️ Potential issue | 🟠 Major

Remove the screenshot from the task flow.

This adds a new image to procedural documentation, which is disallowed by the documentation rules.

🧹 Suggested change
-    ![Home realm identifier configuration]({{base_path}}/assets/img/guides/connections/home-realm-identifier.png){: width="600" style="display: block; margin: 0; border: 0.3px solid lightgrey;"}

As per coding guidelines: “Do not add, generate, or request new images or screenshots.”

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

In `@en/includes/guides/fragments/manage-connection/home-realm-identifier.md` at
line 11, Remove the added image markdown line referencing "Home realm identifier
configuration" (the entire ![Home realm identifier
configuration]({{base_path}}/assets/img/guides/connections/home-realm-identifier.png){:
...} line) from manage-connection/home-realm-identifier.md; if visual context is
required, replace it with a short textual description of the UI step rather than
adding or referencing any new image, ensuring the file no longer introduces or
links to a screenshot.

17-24: ⚠️ Potential issue | 🟡 Minor

Use text instead of bash for the URL template block.

The snippet is not a shell command, so bash is misleading.

📝 Suggested change
-```bash
+```text
 https://<host_name>/t/<org_name>/oauth2/authorize?
   response_type=code
   &client_id=<client_id>
   &redirect_uri=<redirect_uri>
   &scope=openid
   &fidp=<home_realm_identifier>
</details>



As per coding guidelines: “Use fenced code blocks with a language tag when known.”

<details>
<summary>🤖 Prompt for AI Agents</summary>

Verify each finding against the current code and only fix it if needed.

In @en/includes/guides/fragments/manage-connection/home-realm-identifier.md
around lines 17 - 24, Replace the misleading fenced code block language tag
"bash" with "text" in the URL template block (the triple-backtick opening that
currently reads bash) so the snippet is correctly marked as plain text; update the opening fence to text and leave the URL content unchanged (the
block that begins with "https://<host_name>/t/<org_name>/oauth2/authorize?").


</details>

</blockquote></details>

</blockquote></details>

<details>
<summary>🧹 Nitpick comments (1)</summary><blockquote>

<details>
<summary>en/includes/guides/fragments/manage-connection/home-realm-identifier.md (1)</summary><blockquote>

`1-1`: **Split the opening paragraph into shorter sentences.**

This sentence is too long for quick scanning and fails the short-sentence style rule.

<details>
<summary>✂️ Suggested rewrite</summary>

```diff
-The home realm identifier is a unique value that identifies a connection when routing users directly to a specific external IdP during login. When a user initiates login, your application can include this identifier as the `fidp` query parameter in the authorization request, which causes {{ product_name }} to skip the login page and route the user directly to the specified external IdP.
+The home realm identifier is a unique value for a connection.
+When a user starts login, your application can pass this value as the `fidp` query parameter in the authorization request.
+{{ product_name }} then skips the login page and routes the user directly to the specified external IdP.
```
</details>



As per coding guidelines: “Use plain language and short sentences.”

<details>
<summary>🤖 Prompt for AI Agents</summary>

```
Verify each finding against the current code and only fix it if needed.

In `@en/includes/guides/fragments/manage-connection/home-realm-identifier.md` at
line 1, Split the long opening sentence in
manage-connection/home-realm-identifier.md into two or three short sentences for
readability: keep the first sentence to define the home realm identifier as a
unique value that identifies a connection for routing users to an external IdP,
then start a new sentence explaining how your application can include this
identifier as the `fidp` query parameter in the authorization request, and
finish with a short sentence stating that this causes {{ product_name }} to skip
the login page and route the user directly to the specified external IdP.
```

</details>

</blockquote></details>

</blockquote></details>

<details>
<summary>🤖 Prompt for all review comments with AI agents</summary>

Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In @en/includes/guides/fragments/manage-connection/home-realm-identifier.md:

  • Line 11: Remove the added image markdown line referencing "Home realm
    identifier configuration" (the entire Home realm identifier configuration{:
    ...} line) from manage-connection/home-realm-identifier.md; if visual context is
    required, replace it with a short textual description of the UI step rather than
    adding or referencing any new image, ensuring the file no longer introduces or
    links to a screenshot.
  • Around line 17-24: Replace the misleading fenced code block language tag
    "bash" with "text" in the URL template block (the triple-backtick opening that
    currently reads bash) so the snippet is correctly marked as plain text; update the opening fence to text and leave the URL content unchanged (the
    block that begins with "https://<host_name>/t/<org_name>/oauth2/authorize?").

Nitpick comments:
In @en/includes/guides/fragments/manage-connection/home-realm-identifier.md:

  • Line 1: Split the long opening sentence in
    manage-connection/home-realm-identifier.md into two or three short sentences for
    readability: keep the first sentence to define the home realm identifier as a
    unique value that identifies a connection for routing users to an external IdP,
    then start a new sentence explaining how your application can include this
    identifier as the fidp query parameter in the authorization request, and
    finish with a short sentence stating that this causes {{ product_name }} to skip
    the login page and route the user directly to the specified external IdP.

</details>

---

<details>
<summary>ℹ️ Review info</summary>

<details>
<summary>⚙️ Run configuration</summary>

**Configuration used**: Path: .coderabbit.yml

**Review profile**: CHILL

**Plan**: Pro

**Run ID**: `b64ca1c3-2786-4d9b-99f7-4168b52a0145`

</details>

<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between 1b8b2f2f0ba58a7b055124f47c2f38c22d51cfb6 and 643953ac835619c8f8beecbbaa08488bf975afae.

</details>

<details>
<summary>📒 Files selected for processing (2)</summary>

* `en/includes/guides/authentication/federated-login/index.md`
* `en/includes/guides/fragments/manage-connection/home-realm-identifier.md`

</details>

<details>
<summary>🚧 Files skipped from review as they are similar to previous changes (1)</summary>

* en/includes/guides/authentication/federated-login/index.md

</details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->

@DilshanSenarath DilshanSenarath merged commit 4811558 into wso2:master Apr 8, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants