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

2024-07-12 Thread Danielo De León
Hello, something similar is happening to me. In cas apereo v6.6.15 and pac4j v5.4.6, I am trying to log in to Google and Facebook through an endopoint. In the json I have the following: { "@class": "org.apereo.cas.services.CasRegisteredService", "serviceId": ..., "name": ..., "id": ...,

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

2019-03-15 Thread Indika Munaweera
Thank you very much Andy. I was using CAS 6.0.0-RC4-SNAPSHOT and upgraded to 6.1.0-RC3-SNAPSHOT. I really appreciate you taking the time to answer my question. On Friday, March 15, 2019 at 8:56:24 AM UTC+5:30, Andy Ng wrote: > > Hello, > > What version of CAS are you in? If you are in CAS > 5.

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

2019-03-14 Thread Andy Ng
Hello, What version of CAS are you in? If you are in CAS > 5.3.9 (or the latest CAS 6.x), since Pac4j is updated to 3.6.1: You should see that *emails *is no longer there and there is an *email *attribute instead (which is in plain string) So you can get that very easily, no need to decode ha

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

2019-03-14 Thread Indika Munaweera
I am having the same issue. [result=Service Access Granted,service=http://localhost:/login/cas,principal=SimplePrincipal(id=102313159136078677102, attributes={access_token=[ya29.GlzMBibZB2IIac9qMvpdqQ3ZqOufogMmVCkDFvsSG3-qM88mb_Sa-CgNcK0LLHFxO4TJ_ugz7uiTDFUOW7YTi_PXVgVTmuIGYWSdzt11pPpVoxfc

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

2017-10-26 Thread Jérôme LELEU
Hi, It should work. The authentication delegation is handled by the ClientAction or DelegatedClientAuthenticationAction class (the name has changed over versions) which uses the ClientAuthenticationHandler. In this handler, the user profile attributes are used to build the SimplePrincipal: when yo