Hi Marek,
I managed to set up the logger. Thanks! This is the configuration to dump the userinfo JSON response in the log file and the console.
<subsystem xmlns="urn:jboss:domain:logging:3.0">
<console-handler name="CONSOLE">
<level name="DEBUG"/>
<formatter>
<named-formatter name="COLOR-PATTERN"/>
</formatter>
</console-handler>
…
<logger category="org.keycloak.social.user_profile_dump">
<level name="DEBUG"/>
</logger>
...
I have another problem, which is to map the userinfo from the custom OpenID Connect backend. Upon login, it returns this JSON response:
{"sub":"Christine Chapel","name":"","position":"","preferred_username":"Christine Chapel","address":"Nurse, USS Enterprise"}
I’m trying to map preferred_username to the Last Name field. I tried to map this field, and also sub and address, but all without success:
Name: Fullname
Mapper Type: Attribute Importer
Claim: preferred_username
User Attribute Name: lastName
Is there a specific Claim or User Attribute Name that I need to use for the mapping to work?
Cheers!
Hi Marek,
Thanks for the heads up. I’ll give it a shot.
Eugene
Hi,
do you have opportunity to upgrade to latest 1.3.1.Final? It seems
that this logging was added in this version and is not yet
available in 1.2.0.
Marek
On 14.7.2015 07:59, Eugene Chow wrote:
Hi Stian/Marek,
I need this to debug the JSON response from a custom
OpenID Connect backend.
Thanks a lot!
Eugene
Hi,
i have a Keycloak 1.2.0 installation that authenticates
against a custom OpenID Connect provider. I need to see the
JSON response from the social provider. The documentation
says to set org.keycloak.social.user_profile_dump to DEBUG.
I’ve added the following to standalone.xml as such, but I
don’t see any JSON output in the log. Is this configuration
correct?
<profile>
<subsystem
xmlns="urn:jboss:domain:logging:2.0”>
<logger
category="org.keycloak.social.user_profile_dump">
<level name="DEBUG"/>
</logger>
…
...
</profile>
Thanks!
Eugene
_______________________________________________
keycloak-user mailing list
keycloak-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user