Closed jschnare closed 4 years ago
@jschnare, will be great if you enable log of request/response from google and look in log what response contains. As you said it looks like family name is null. thanks To enable req/resp log run:
docker-compose exec identity /opt/karaf/bin/client 'log:set INFO org.apache.cxf'
After that you can revert this operation by:
docker-compose exec identity /opt/karaf/bin/client 'log:set WARN org.apache.cxf'
Thanks for that tip, it gave me enough info to figure it out.
I thought that the app was pulling the user details from the AdminDirectory API, where we have set the user's full name. I see now that it's reading the OpenIDConnect userinfo. In this case the user had gone to https://myaccount.google.com/personal-info/ and set his name to his first name only, no family name. The error went away once he'd set his full name.
The real issue then is that family_name is not guaranteed to be set in the OpenIDConnect response.
thanks for info @jschnare, it's good point, that will be better to to read user info using AdminDirectory API. I will close this issue and open new one for this change.
One of our users is getting this exception when he tries to creates his account. We're running the latest docker image, tag 4.6.
I'm guessing that it's failing because
account.getFamilyName()
returns null, but I've confirmed that his gsuite account has family, given, and full name details set. Other users aren't seeing the same error.Any idea what else I can check?
Stack trace: