Skip to content

Add API Portal multi-org mode documentation to api-portal-next - #781

Open
Piumal1999 wants to merge 1 commit into
wso2:api-portal-nextfrom
Piumal1999:api-portal-multi-organization-next
Open

Piumal1999 wants to merge 1 commit into
wso2:api-portal-nextfrom
Piumal1999:api-portal-multi-organization-next

Conversation

@Piumal1999

Copy link
Copy Markdown
Contributor

Purpose

Document the API Portal's multi-organization mode on the api-portal-next branch, which lets one portal instance serve every organization in an identity provider, and add a WSO2 Identity Server setup guide for it. This carries the api-portal/next changes from #544 to this branch, and also corrects existing pages that describe organization claim handling, the organization's IdP reference ID, and stored API content types inaccurately.

Goals

  • Explain how to run one API Portal for every organization in an IdP, and what it means for deployment, sign-in, provisioning, bearer tokens, and webhooks.
  • Document per-organization issuers, so bearer tokens issued by an organization's own token endpoint are accepted.
  • Give a worked WSO2 Identity Server example, from application registration to onboarding an organization.
  • Correct how the existing pages describe tokens without an organization claim, the auth.idp_org_id setting, and the stored API content types.

Approach

Changes apply to api-portal/next. The page content is identical to #544.

New pages, under Setting up > Authentication:

  • Serve Multiple Organizations (multi-organization.md): enabling the mode, deployment requirements, how organizations are resolved and provisioned, organization claims, sign-in, bearer tokens and per-organization issuers (issuer_template, jwks_url_template, template_org_claim), webhooks, claim names for common IdPs, turning it off, and troubleshooting.
  • Set up WSO2 Identity Server (wso2-is-as-idp.md): registering and sharing the API Portal application, creating the dp_admin and dp_subscriber roles, the portal configuration and its client secret, accepting tokens from an organization's own token endpoint, trusting the Identity Server certificate, mapping the root organization, and onboarding an organization.

Updated pages:

  • Connect an Identity Provider:
    • adds the optional org_name and org_handle claim mappings;
    • documents that a token without an organization claim acts in the configured organization;
    • documents auth.idp_org_id as a value the organization claim can match;
    • links to multi-organization mode;
    • points the interpolation tokens link at its section in Configuration.
  • Authentication overview: links to the new pages.
  • Configurations:
    • new Multi-organization section;
    • idp_org_id, the new claim mappings, and the per-organization issuer keys;
    • audience noted as required in this mode;
    • a corrected organization note, separating single- and multi-organization claim matching.
  • Organization settings: corrects where the IdP reference ID comes from.
  • Webhooks: per-organization delivery in multi-organization mode.
  • API content and MCP server content REST API references: correct the type values (MARKETING, IMAGE, DOC_<category>, and API_DEFINITION or SCHEMA_DEFINITION) and the fileName to use for a stored definition.
  • mkdocs.yml: nav entries for the new pages in both version blocks, as on main; the branch build trims the nav to next.

Startup checks are documented as in the product: each template needs exactly one {org}, and jwks_url_template must use https.

Related PRs

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Nov 5, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 252cbd4d-5ea4-4084-8726-74c2ed841c8c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

This branch has not been deployed

No deployments
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.

1 participant