Hey everyone, I’ve having some trouble with OIDC v...
# troubleshoot
c
Hey everyone, I’ve having some trouble with OIDC via google. I’m getting
Failed to resolve user name claim from profile provided by Identity Provider. Missing attribute. Attribute: 'preferred_username'
error. The profile returned from google is missing the
preferred_username
and
username
as well, what do I need to do in order to add it to the profile sent back from google? Is there a workaround? These are the fields I’m getting from the profile provider:
Copy code
{
at_hash=***, 
sub=112764038129102833931, 
email_verified=true, 
id_token=***, 
iss=<https://accounts.google.com>, 
given_name=***, 
locale=en, 
picture=***, 
token_expiration_advance=-1, 
aud=[***.<http://apps.googleusercontent.com|apps.googleusercontent.com>], 
azp=***.<http://apps.googleusercontent.com|apps.googleusercontent.com>, 
name=*** ***, 
hd=***.com, 
exp=***, 
family_name=***, 
iat=***, 
email=***@***.com
}
With
AUTH_OIDC_USER_NAME_CLAIM=email
I’m getting
Failed to perform post authentication steps. Error message: Failed to provision user with urn
According to this, there’s no
username
or
preferred_username
in google profile.