Add new claims_supported

169 vistas
Ir al primer mensaje no leído

Everton Godoi

no leída,
15 oct 2021, 9:56:48 a.m.15/10/21
para Keycloak Dev

Hi everybody!

I need a help, to add new claims_supported in .well_know at the keycloak, because I sought in documentation and the keycloak admin, but I can't found where I add the information.

In my case I need to add "cpf", "cnpj", bellow follow my current .well_know with claims_supported.

"claims_supported": [
"aud",
"sub",
"iss",
"auth_time",
"name",
"given_name",
"family_name",
"preferred_username",
"email",
"acr"
]

If someone can help me, I appreciate.

Best,
Everton Godoi

Thomas Darimont

no leída,
15 oct 2021, 12:18:30 p.m.15/10/21
para Everton Godoi,Keycloak Dev
Hello Everton,

The claims_supported are currently hardcoded in OIDCWellKnownProvider, see: 

You could provide your own OIDCWellKnownProvider implementation that sets the appropriate claims via the OIDCConfigurationRepresentation#setClaimsSupported method.
An example for a custom OIDCWellKnownProvider is contained in the testsuite.

Cheers,
Thomas

--
You received this message because you are subscribed to the Google Groups "Keycloak Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-dev/65e11530-572c-4d1d-bb6c-8e9bf1dae9aen%40googlegroups.com.
Responder a todos
Responder al autor
Reenviar
Se borró el mensaje
0 mensajes nuevos