Skip to content

[esignet-2667] Allow Keycloak init YAML to configure audience mappers - #2740

Draft
Ivanmeneges wants to merge 5 commits into
masterfrom
cursor/keycloak-audience-mapper-f064
Draft

Ivanmeneges wants to merge 5 commits into
masterfrom
cursor/keycloak-audience-mapper-f064

Conversation

@Ivanmeneges

Copy link
Copy Markdown
Contributor

Related to #2667.

Documents the optional audience mapper in AGENTS.md and deploy/keycloak/keycloak-init-values.yaml. No client is given an audience mapper. Existing mappers lists stay as they are.

The script change itself belongs in mosip/keycloak#216. A mapper entry without protocol_mapper stays oidc-usermodel-attribute-mapper. protocol_mapper: oidc-audience-mapper with included_client_audience or included_custom_audience adds that value to the access token aud.

Open in Web Open in Cursor 

cursoragent and others added 5 commits October 8, 2026 10:02
Mapper entries still default to oidc-usermodel-attribute-mapper. An entry can set protocol_mapper to oidc-audience-mapper and supply included_client_audience or included_custom_audience so that value is added to the access token aud claim. The published keycloak-init chart install path is unchanged.

Co-authored-by: Ivanmeneges <Ivanmeneges@users.noreply.github.com>
The checks were only used while verifying the audience mapper. The init script change does not depend on them.

Co-authored-by: Ivanmeneges <Ivanmeneges@users.noreply.github.com>
The README no longer points this script change at mosip/keycloak.

Co-authored-by: Ivanmeneges <Ivanmeneges@users.noreply.github.com>
AGENTS.md points mapper changes at mosip/keycloak. The eSignet values file shows the audience mapper shape without adding it to any client.

Co-authored-by: Ivanmeneges <Ivanmeneges@users.noreply.github.com>
…n re-run.

A 409 leaves included_client_audience unchanged until that mapper is deleted and init runs again.

Co-authored-by: Ivanmeneges <Ivanmeneges@users.noreply.github.com>
@cursor

cursor Bot commented Oct 21, 2026

Copy link
Copy Markdown

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@coderabbitai

coderabbitai Bot commented Oct 21, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

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