Skip to content

Docs: “Using OpenID Connect (OIDC) and Keycloak to centralize authorization” guide issues #46463

@gtroitsk

Description

@gtroitsk

Describe the bug

Found issues in the “Using OpenID Connect (OIDC) and Keycloak to centralize authorization” guide

Configuring the application + other application.properties examples

  • Is it possible to not have spaces before numbered notes in application.properties files? Trailing spaces can cause wrong behaviour for some properties.

Starting and configuring the Keycloak server

  • Docker run command example: trailing space after backslash, before the 1. note that breaks command execution

  • Having an example using Docker CLI is good for community guide, but for future reference in RHBQ doc, we can add a note that it is possible to use Red Hat supported - Podman.

  • Keycloak Administration Console access example is duplicated, let’s use the second variant - starts with “Accessing the Keycloak server”

  • Docs says: “After importing the realm, you can see the resource permissions:”
    That took me some time to find the right tab. I think it will be nice to have a path mentioned. “From menu go to Clients and choose backend-service, next Authorization and Resources tabs”

  • Data from screenshot is hard to read without opening it in new tab. I suggest to create new and smaller

Running the application in native mode

  • Command for running Native binary should be the next:
    ./target/security-keycloak-authorization-quickstart-1.0.0-SNAPSHOT-runner

Checking permission scopes programmatically

  • In the 3.note after the Java code example: “see the section Authorization using annotations of the Security Authorization guide”. Guide is now called “Authorization of web endpoints”

Dynamic tenant configuration resolution

  • Please remove “config” from called builder method on the line this.enhancedTenantConfig = KeycloakPolicyEnforcerTenantConfig.builder(config)

  • tenantConfig.tenantId.orElse(null) tenantId is deprecated since 3.18, please change to tenantId()

Common:
Keycloak Authorization Services are …(plural)

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions