Re: [cas-user] How to get google attributes in PAC4J

2017-10-24 Thread Jérôme LELEU
Hi, What scope did you define? >From the doc: https://apereo.github.io/cas/5.1.x/installation/Configuration-Properties.html#pac4j-delegated-authn Google Delegate authentication to Google. 1 2 3 4 # cas.authn.pac4j.google.id= # cas.authn.pac4j.google.secret= #

Re: [cas-user] How to get google attributes in PAC4J

2017-10-24 Thread Carlos Fernandez
Hi, Edward, If you set the org.pac4j logger to level="debug" you'll get Google's JSON response with the user's attributes. To save you the trouble, I found: gender displayName name.givenName name.familyName url image.url language access_token Google may return more if the user has them, but I

[cas-user] How to get google attributes in PAC4J

2017-10-23 Thread Edward
Hi All i have implemented CAS delegate auth using PAC4J, CAS version: 5.1.4 after login via google, and call user profile URL, ("https://mydomain.com:8443/cas/oauth2.0/profile;) value returned from CAS was only this: { "attributes": { "clientName": "Google" }, "id":