Add new claims_supported

31 views
Skip to first unread message

Everton Godoi

unread,
Oct 15, 2021, 9:56:48 AMOct 15
to 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

unread,
Oct 15, 2021, 12:18:30 PMOct 15
to 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.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages