Hi everyone, we are really struggling with the deb...
# feedback
s
Hi everyone, we are really struggling with the debugging of claims that are sent from an external IdP using OIDC in Enterprise SSO. Maybe there is a debugging mode somewhere, but I really cannot find it. Wouldn't it make sense to have this available particularly for development? Or is there any specific reason why it is not available?
m
Hello @swift-airline-52636 It probably depends what exactly you want to debug, but in my experience it can help to add all the claims received from the IdP to the user metadata for debugging. You can use a jsonnet like this for example:
Copy code
local claims = {
  email_verified: false,
} + std.extVar('claims');
{
  identity: {
    traits: {
      [if 'email' in claims && claims.email_verified then 'email' else null]: claims.email,
    },
        metadata_public: {
      debug_claims: claims
    }
  },
}
s
Thank you Vincent, we are giving it a try 😊🙏
h
I think you can use the events view to find details about it but i am not sure - would be good to make this easier