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=
# cas.authn.pac4j.google.scope=EMAIL|PROFILE|EMAIL_AND_PROFILE
# cas.authn.pac4j.google.clientName=

Thanks.
Best regards,
Jérôme


On Tue, Oct 24, 2017 at 3:11 PM, Carlos Fernandez <[email protected]>
wrote:

> 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 have not seen them yet.
> You can reference them in the attribute release policy as described above,
> and map them to other names using org.apereo.cas.services.
> ReturnMappedAttributeReleasePolicy if you need them.
>
>
>
> Carlos
>
> Carlos Fernandez | Solutions Architect
>
> [email protected]
>
> 215.297.4400 x 267 <215-297-4400>
>
> 751 Arbor Way, Hillcrest I, Suite 150
> Blue Bell, PA 19422
> <https://www.google.com/maps/place/CoreDial,+LLC/@40.140902,-75.2878857,17z/data=!3m1!4b1!4m5!3m4!1s0x89c6bc587f1cfd47:0x4c79d505f2ee580b!8m2!3d40.140902!4d-75.285697>
>
> www.coredial.com <https://coredial.com/>
> <https://twitter.com/coredial>
> <https://www.linkedin.com/company/coredial-llc>
> <https://plus.google.com/+Coredial> <https://success.coredial.com/blog>
>
> The information transmitted is intended only for the person or entity to
> which it is addressed and may contain confidential and/or privileged
> material. Any review, retransmission, dissemination or other use of, or
> taking of any action in reliance upon, this information by persons or
> entities other than the intended recipient is prohibited. If you received
> this in error, please contact the sender and delete the material from any
> computer.
>
> On Tue, Oct 24, 2017 at 12:47 AM, Edward <[email protected]> wrote:
>
>> 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": "125418764817264812646"
>> }]>
>>
>> how to retrieve other attributes? such as, first_name, email address etc.
>> and what is the list of fields that google can return?
>>
>> Thanks
>>
>> --
>> - Website: https://apereo.github.io/cas
>> - Gitter Chatroom: https://gitter.im/apereo/cas
>> - List Guidelines: https://goo.gl/1VRrw7
>> - Contributions: https://goo.gl/mh7qDG
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "CAS Community" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit https://groups.google.com/a/ap
>> ereo.org/d/msgid/cas-user/fd2e9d6a-b714-4bef-9f00-3222dc8b0f
>> 51%40apereo.org
>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/fd2e9d6a-b714-4bef-9f00-3222dc8b0f51%40apereo.org?utm_medium=email&utm_source=footer>
>> .
>>
>
> --
> - Website: https://apereo.github.io/cas
> - Gitter Chatroom: https://gitter.im/apereo/cas
> - List Guidelines: https://goo.gl/1VRrw7
> - Contributions: https://goo.gl/mh7qDG
> ---
> You received this message because you are subscribed to the Google Groups
> "CAS Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/a/
> apereo.org/d/msgid/cas-user/CANUog5ZpBtUGNL7_BQumSMvEdySh7iVCx7j3mM_
> OgK69aB0OOw%40mail.gmail.com
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/CANUog5ZpBtUGNL7_BQumSMvEdySh7iVCx7j3mM_OgK69aB0OOw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAP279Lz0U08FfMP9GT1FNGL-P9bmHXxyEwL6Hk3bFrdN5CJgtA%40mail.gmail.com.

Reply via email to