diff --git a/keycloak/realm/dyingstar-realm.json b/keycloak/realm/dyingstar-realm.json index f0431ee..8463026 100644 --- a/keycloak/realm/dyingstar-realm.json +++ b/keycloak/realm/dyingstar-realm.json @@ -40,12 +40,69 @@ { "name": "profile", "protocol": "openid-connect", - "attributes": { "include.in.token.scope": "true", "display.on.consent.screen": "true" } + "attributes": { "include.in.token.scope": "true", "display.on.consent.screen": "true" }, + "protocolMappers": [ + { + "name": "username", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-property-mapper", + "consentRequired": false, + "config": { + "userinfo.token.claim": "true", + "user.attribute": "username", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "preferred_username", + "jsonType.label": "String" + } + }, + { + "name": "full name", + "protocol": "openid-connect", + "protocolMapper": "oidc-full-name-mapper", + "consentRequired": false, + "config": { + "id.token.claim": "true", + "access.token.claim": "true", + "userinfo.token.claim": "true" + } + } + ] }, { "name": "email", "protocol": "openid-connect", - "attributes": { "include.in.token.scope": "true", "display.on.consent.screen": "true" } + "attributes": { "include.in.token.scope": "true", "display.on.consent.screen": "true" }, + "protocolMappers": [ + { + "name": "email", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-property-mapper", + "consentRequired": false, + "config": { + "userinfo.token.claim": "true", + "user.attribute": "email", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "email", + "jsonType.label": "String" + } + }, + { + "name": "email verified", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-property-mapper", + "consentRequired": false, + "config": { + "userinfo.token.claim": "true", + "user.attribute": "emailVerified", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "email_verified", + "jsonType.label": "boolean" + } + } + ] } ], "clients": [