Skip to content

Converting authorization services documentation to guides - #52226

Draft
stianst wants to merge 1 commit into
keycloak:mainfrom
stianst:guides-authorization-services
Draft

stianst wants to merge 1 commit into
keycloak:mainfrom
stianst:guides-authorization-services

Conversation

@stianst

@stianst stianst commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Closes #55481

Signed-off-by: stianst stianst@gmail.com

keycloak-github-bot[bot]

This comment was marked as outdated.

@andymunro

Copy link
Copy Markdown
Contributor

This looks good, @stianst. I am glad you are retaining the .Procedure heading. That makes it easier for a script for downstream files to add the content type to any file with that heading as follows:

:_mod-docs-content-type: PROCEDURE

@stianst
stianst force-pushed the guides-authorization-services branch 3 times, most recently from c7b17a6 to 95a36a3 Compare November 24, 2026 11:33
@stianst stianst changed the title PoC converting authorization docs to guides using Claud Converting authorization services documentation to guides Nov 24, 2026
@stianst
stianst force-pushed the guides-authorization-services branch from 95a36a3 to e528681 Compare November 24, 2026 11:37
@stianst

stianst commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

PR to add authorization services to the website: keycloak/keycloak-web#853

@keycloak keycloak deleted a comment from keycloak-github-bot Bot Nov 24, 2026
@stianst
stianst requested a balanced review from Copilot November 24, 2026 11:40
@stianst
stianst force-pushed the guides-authorization-services branch from e528681 to 414856b Compare November 24, 2026 11:41

Copilot AI left a comment

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.

🟡 Changes recommended

The migration leaves a stale test registry entry that breaks clean-build documentation tests, along with broken links to retired pages and mismatched or malformed section fragments.

3 open issues
What changed in this PR

Converts Authorization Services documentation from the legacy book structure to Keycloak’s guide format, addressing #55481 without changing server behavior.

Changes:

  • Organizes documentation into guides for concepts, configuration, policies, permissions, and enforcement.
  • Adds guide rendering, cross-guide link support, shared attributes, and image assets.
  • Removes legacy documentation sources and their Maven build, test dependency, and packaging entries.
File Description
docs/​guides/​templates/​links.adoc Adds custom link titles and Authorization Services links.
docs/​guides/​pom.xml Adds Authorization Services HTML generation.
docs/​guides/​images/​keycloak_logo.png Adds a guide image asset.
docs/​guides/​images/​getting-started/​hello-world/​create-scope.png Adds a scope-creation screenshot.
docs/​guides/​authorization-services/​resources.adoc Converts resource management into a guide.
docs/​guides/​authorization-services/​resource-server.adoc Consolidates resource-server configuration instructions.
docs/​guides/​authorization-services/​policy-evaluation-tool.adoc Converts policy testing into a guide.
docs/​guides/​authorization-services/​policy-enforcers.adoc Consolidates enforcement and JavaScript integration documentation.
docs/​guides/​authorization-services/​policies.adoc Consolidates policy types and evaluation APIs.
docs/​guides/​authorization-services/​permissions.adoc Consolidates permission configuration and decision strategies.
docs/​guides/​authorization-services/​overview.adoc Combines concepts, architecture, and terminology.
docs/​guides/​authorization-services/​index.adoc Assembles the combined guide.
docs/​guides/​authorization-services/​getting-started.adoc Converts quickstart references into a guide.
docs/​guides/​attributes.adoc Adds JavaScript provider and JavaDoc links.
docs/​documentation/​tests/​pom.xml Removes the legacy documentation dependency.
docs/​documentation/​pom.xml Removes the legacy module from the build.
docs/​documentation/​authorization_services/​topics/​service-rpt-token-introspection.adoc Removes the legacy token-introspection topic.
docs/​documentation/​authorization_services/​topics/​service-rpt-overview.adoc Removes the legacy requesting-party-token overview.
docs/​documentation/​authorization_services/​topics/​service-protection-whatis-obtain-pat.adoc Removes the legacy protection-token topic.
docs/​documentation/​authorization_services/​topics/​service-protection-resources-api-papi.adoc Removes the legacy resource API topic.
docs/​documentation/​authorization_services/​topics/​service-protection-protection-api.adoc Removes the legacy Protection API overview.
docs/​documentation/​authorization_services/​topics/​service-protection-policy-api.adoc Removes the legacy Policy API topic.
docs/​documentation/​authorization_services/​topics/​service-protection-permission-api-papi.adoc Removes the legacy permission-request API topic.
docs/​documentation/​authorization_services/​topics/​service-overview.adoc Removes the legacy service overview.
docs/​documentation/​authorization_services/​topics/​service-authorization-uma-submiting-permission-requests.adoc Removes the legacy permission-submission topic.
docs/​documentation/​authorization_services/​topics/​service-authorization-uma-authz-process.adoc Removes the legacy UMA authorization-flow topic.
docs/​documentation/​authorization_services/​topics/​service-authorization-uma-account-my-resources.adoc Removes the legacy user-resource sharing topic.
docs/​documentation/​authorization_services/​topics/​service-authorization-pushing-claims.adoc Removes the legacy claims-submission topic.
docs/​documentation/​authorization_services/​topics/​service-authorization-obtaining-permission.adoc Removes the legacy permission-request reference.
docs/​documentation/​authorization_services/​topics/​service-authorization-obtaining-permission-uma.adoc Removes the legacy UMA overview.
docs/​documentation/​authorization_services/​topics/​service-authorization-obtaining-permission-authentication.adoc Removes the legacy client-authentication topic.
docs/​documentation/​authorization_services/​topics/​service-authorization-discovery-document.adoc Removes the legacy endpoint-discovery topic.
docs/​documentation/​authorization_services/​topics/​resource-view.adoc Moves resource-list documentation into the resources guide.
docs/​documentation/​authorization_services/​topics/​resource-server-overview.adoc Moves the overview into the resource-server guide.
docs/​documentation/​authorization_services/​topics/​resource-server-import-config.adoc Moves configuration import/export into the resource-server guide.
docs/​documentation/​authorization_services/​topics/​resource-server-enable-authorization.adoc Moves authorization setup into the resource-server guide.
docs/​documentation/​authorization_services/​topics/​resource-server-create-client.adoc Moves client creation into the resource-server guide.
docs/​documentation/​authorization_services/​topics/​resource-overview.adoc Moves introductory content into the resources guide.
docs/​documentation/​authorization_services/​topics/​policy-user-policy.adoc Moves user policies into the policies guide.
docs/​documentation/​authorization_services/​topics/​policy-time-policy.adoc Moves time policies into the policies guide.
docs/​documentation/​authorization_services/​topics/​policy-role-policy.adoc Moves role policies into the policies guide.
docs/​documentation/​authorization_services/​topics/​policy-role-policy-required-role.adoc Moves required-role configuration into the policies guide.
docs/​documentation/​authorization_services/​topics/​policy-regex-policy.adoc Moves regex policies into the policies guide.
docs/​documentation/​authorization_services/​topics/​policy-overview.adoc Moves policy-management basics into the policies guide.
docs/​documentation/​authorization_services/​topics/​policy-logic.adoc Moves policy logic into the policies guide.
docs/​documentation/​authorization_services/​topics/​policy-js-policy.adoc Moves JavaScript policies into the policies guide.
docs/​documentation/​authorization_services/​topics/​policy-group-policy.adoc Moves group policies into the policies guide.
docs/​documentation/​authorization_services/​topics/​policy-group-policy-extend-children.adoc Moves child-group access into the policies guide.
docs/​documentation/​authorization_services/​topics/​policy-evaluation-api.adoc Moves evaluation APIs into the policies guide.
docs/​documentation/​authorization_services/​topics/​policy-client-scope-policy.adoc Moves client-scope policies into the policies guide.
docs/​documentation/​authorization_services/​topics/​policy-client-scope-policy-required-client-scope.adoc Moves required-scope configuration into the policies guide.
docs/​documentation/​authorization_services/​topics/​policy-client-policy.adoc Moves client policies into the policies guide.
docs/​documentation/​authorization_services/​topics/​policy-aggregated-policy.adoc Moves aggregated policies into the policies guide.
docs/​documentation/​authorization_services/​topics/​permission-typed-resource-permission.adoc Moves typed-resource permissions into the permissions guide.
docs/​documentation/​authorization_services/​topics/​permission-overview.adoc Moves permission-management basics into the permissions guide.
docs/​documentation/​authorization_services/​topics/​permission-decision-strategy.adoc Moves decision strategies into the permissions guide.
docs/​documentation/​authorization_services/​topics/​permission-create-scope.adoc Moves scope permissions into the permissions guide.
docs/​documentation/​authorization_services/​topics/​permission-create-resource.adoc Moves resource permissions into the permissions guide.
docs/​documentation/​authorization_services/​topics/​enforcer-overview.adoc Moves enforcement concepts into the policy-enforcers guide.
docs/​documentation/​authorization_services/​topics/​auth-services-terminology.adoc Moves terminology into the overview guide.
docs/​documentation/​authorization_services/​topics/​auth-services-overview.adoc Moves introductory content into the overview guide.
docs/​documentation/​authorization_services/​topics/​auth-services-architecture.adoc Moves architecture into the overview guide.
docs/​documentation/​authorization_services/​topics.adoc Removes the legacy topic assembly.
docs/​documentation/​authorization_services/​pom.xml Removes the legacy documentation module.
docs/​documentation/​authorization_services/​index.adoc Removes the legacy book entry point.
docs/​documentation/​authorization_services/​.asciidoctorconfig Removes legacy image-preview configuration.
docs/​documentation/​aggregation/​pom.xml Removes legacy documentation packaging.

Review effort: Balanced

Comment thread docs/documentation/aggregation/pom.xml Resolved
Comment thread docs/guides/pom.xml Resolved
Comment thread docs/guides/templates/links.adoc Resolved
@stianst
stianst force-pushed the guides-authorization-services branch from 414856b to f23dc07 Compare November 24, 2026 11:51
Closes keycloak#55481

Signed-off-by: stianst <stianst@gmail.com>
@stianst
stianst force-pushed the guides-authorization-services branch from f23dc07 to a416c89 Compare November 24, 2026 12:08
@stianst
stianst requested a balanced review from Copilot November 24, 2026 12:44

Copilot AI left a comment

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.

🟡 Changes recommended

The documentation leaves all five prerequisite links with unresolved placeholders and directs the Permissions link to the policies page instead of the permissions guide.

2 open issues
3 resolved since last review

Review effort: Balanced

:authorizationguide_link_latest: {project_doc_base_url_latest}/authorization_services/
:authorizationguide_link: https://www.keycloak.org/guides#authorization-services
:authorizationguide_policies_link: https://www.keycloak.org/authorization-services/policies
:authorizationguide_permissions_link: https://www.keycloak.org/authorization-services/policies
Comment on lines +30 to +33
. link:{authorizationguide_resource_server_enable_authorization_link}[A client with authorization enabled] -- The client whose access token is used to authenticate AuthZEN requests must have *Authorization Enabled* in its settings.
. link:{authorizationguide_resource_create_link}[Resources] -- Define resources in the client's *Authorization* -> *Resources* section. The resource name maps to the `resource.id` in AuthZEN requests, and the resource type maps to `resource.type`.
. link:{authorizationguide_resource_create_link}[Scopes] -- Define scopes in the client's *Authorization* -> *Scopes* section. Scope names map to the `action.name` in AuthZEN requests.
. link:{authorizationguide_policies_link}[Policies] and link:{authorizationguide_permissions_link}[Permissions] -- Create policies and permissions that associate resources and scopes with authorization decisions.
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.

Convert authorization services documentation to guide format

3 participants