Skip to content

Fixes mosip/esignet#2667 Refactor mapper creation logic - #216

Merged
ckm007 merged 16 commits into
release-1.3.xfrom
Ivanmeneges-patch-2
Oct 21, 2026
Merged

ckm007 merged 16 commits into
release-1.3.xfrom
Ivanmeneges-patch-2

Conversation

@Ivanmeneges

Copy link
Copy Markdown

Refactor mapper creation to use mapper_payload function for better maintainability and clarity.

Refactor mapper creation to use mapper_payload function for better maintainability and clarity.

Signed-off-by: Ivanmeneges <ivan.anil016@gmail.com>
@coderabbitai

coderabbitai Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: cdddc5f6-e625-4038-8756-66c6651b7a09
  • 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.

@Ivanmeneges Ivanmeneges changed the title #2667 Refactor mapper creation logic mosip/esignet#2667 Refactor mapper creation logic Oct 9, 2026
@Ivanmeneges Ivanmeneges changed the title mosip/esignet#2667 Refactor mapper creation logic Fixes mosip/esignet#2667 Refactor mapper creation logic Oct 9, 2026
Updated README.md to reflect changes in audience mappers and client roles assignment.

Signed-off-by: Ivanmeneges <ivan.anil016@gmail.com>
@Ivanmeneges Ivanmeneges closed this Oct 9, 2026
@Ivanmeneges Ivanmeneges reopened this Oct 9, 2026
Expanded the README to include prerequisites, script usage, Docker instructions, theme application, and role assignment methods for Keycloak.

Signed-off-by: Ivanmeneges <ivan.anil016@gmail.com>
Added details about Keycloak init script and audience mappers.

Signed-off-by: Ivanmeneges <ivan.anil016@gmail.com>
Added comments for audience mapper configuration in clients section.

Signed-off-by: Ivanmeneges <ivan.anil016@gmail.com>
Removed section on Keycloak init audience mappers and related YAML example from the README.

Signed-off-by: Ivanmeneges <ivan.anil016@gmail.com>
Updated guidance on Keycloak init mappers, including details on protocol mappers and audience entries.

Signed-off-by: Ivanmeneges <ivan.anil016@gmail.com>
…oak`. ## Keycloak init mappers `keycloak-init/keycloak_init.py` already creates protocol mappers. Each client `mappers` entry is passed to `create_mapper`, which calls `mapper_payload`. - Leave `protocol_mapper` unset to keep `oidc-usermodel-attribute-mapper`. Those entries use `mapper_name`, `mapper_user_attribute`, and `token_claim_name`. - Set `protocol_mapper: oidc-audience-mapper` and `included_client_audience` or `included_custom_audience` to add that value to the access token `aud`. The script sets `access.token.claim` to `true`. - Pass the new entry through the existing `mappers` list. Do not add another mapper implementation. - A re-run skips a mapper name that already exists. The stored mapper is left as it is. - The old script rejects an audience entry because it still requires `mapper_user_attribute`. - Chart mapper lists live in `helm/keycloak-init directory

Signed-off-by: Ivanmeneges <ivan.anil016@gmail.com>
Document guidance for coding agents in mosip/keycloak, including details on Keycloak init mappers and their configuration.

Signed-off-by: Ivanmeneges <ivan.anil016@gmail.com>
Clarified behavior of mappers and role assignment in Keycloak.

Signed-off-by: Ivanmeneges <ivan.anil016@gmail.com>
Clarified protocol mapper descriptions and added checks for audience mappers.

Signed-off-by: Ivanmeneges <ivan.anil016@gmail.com>
Refactor mapper_payload function to improve audience validation and configuration handling. Add validate_configured_mappers function to check mapper entries before realm or client creation.

Signed-off-by: Ivanmeneges <ivan.anil016@gmail.com>
Clarify protocol mapper requirements in README.

Signed-off-by: Ivanmeneges <ivan.anil016@gmail.com>
Updated comments for clarity regarding audience configuration and ensured proper formatting in keycloakExternalHost.

Signed-off-by: Ivanmeneges <ivan.anil016@gmail.com>
Expanded guidance for coding agents in the `mosip/esignet` repository, detailing subproject layout, working across subprojects, and conventions.

Signed-off-by: Ivanmeneges <ivan.anil016@gmail.com>
Signed-off-by: Ivanmeneges <ivan.anil016@gmail.com>
@ckm007
ckm007 merged commit be56a7e into release-1.3.x Oct 21, 2026
12 of 13 checks passed
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