Hi! Wondering if anyone can help me here - I previ...
# ory-network
h
Hi! Wondering if anyone can help me here - I previously had OIDC working with self-hosted Hydra and my own IDP - I'm now trying to move over to Hydra in Ory Cloud with Kratos. I've configured the client in Hydra identically to that of my self hosted one - but when I exchange the code for an id_token, the id token does not have an email. This is not the case with my self hosted instance of Hydra. I'm wondering if Kratos has something to do with this? Initially, Kratos was configured using the username/password schema - I've since changed it to email/password, and am authenticating with an identity via user/password, but still no luck. Any ideas?
In fact, I'm not really getting any user data out of the id token
h
Hi, so the problem is if you set the scope
email
then the ID token does not have the email?
This is currently a limitation, but we will add a workaround very soon to get this basic thing working. The problem is that the identity has the identity schema and email might be called
primary_email
or whatever, so we’re thinking of how to make this either configurable or standardized. But as a workaround we’ll just check for the
email
field.
h
Hi, so the problem is if you set the scope
email
then the ID token does not have the email?
Correct
I'm not 100% sure I follow. Is that the case even with the built in schemas?
I guess I'm not sure what the workaround is - or if it's something I can do on my end?
h
@high-activity-49887 This is now fixed!