Skip to content

Keycloak OIDC: Add field for client credential-based user/group search #17284

@rak-phillip

Description

@rak-phillip

SURE-10538

Add an option to the Keycloak OIDC auth provider that allows for toggling client-based authentication for searches.

Proposed solution

Expose the new boolean field to toggle client-based authentication for searches (see https://github.com/rancher/rancher/blob/main/pkg/apis/management.cattle.io/v3/authn_types.go#L739) in the Keycloak OIDC Auth Provider configuration form.

Acceptance criteria

  • The Keycloak OIDC configuration form includes the new toggle with the description: "Use the OIDC Client Credentials to authenticate to Keycloak when searching for users or groups. This will bypass user-based RBAC within the realm."
  • The field is not shown on other OIDC provider forms
  • The field value is saved to and read from the correct API field
  • Help text or a hint informs operators that the Keycloak client must have appropriate service account permissions for this to work
  • Unit tests cover the field's presence on the Keycloak form and absence on other OIDC forms

Additional details

The backend now supports authenticating these searches using OIDC client credentials instead, bypassing user-based RBAC within the realm.

Metadata

Metadata

Type

No fields configured for Task.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions