Re: [cas-user] Re: Implementing ORCID auth: Problem with cas.authn.pac4j.oauth2[0].profile-url

2023-11-08 Thread Meysam Shirazi
I don't recommend implementing OAuth20ProfileController(your link is too old any way), I just suggest develop a wrapper for delegate oauth profile api(https://api.sandbox.orcid.org/v3.0/{user}/record). On Wednesday, November 8, 2023 at 11:59:58 PM UTC+3:30 Ray Bon wrote: > And this property >

Re: [cas-user] Re: Implementing ORCID auth: Problem with cas.authn.pac4j.oauth2[0].profile-url

2023-11-08 Thread Ray Bon
Aleix, That documentation is _very_ old. There have been a lot of changes to cas since 2014; not the least of which is the change from org.jasig to org.apereo. Reading that document may provide some general understanding. You can increase the logging level [debug|trace] to see what classes are

Re: [cas-user] Re: Implementing ORCID auth: Problem with cas.authn.pac4j.oauth2[0].profile-url

2023-11-08 Thread Ray Bon
And this property warn Ray On Wed, 2023-11-08 at 07:44 -0800, Aleix Mariné wrote: Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information. So, I have found

[cas-user] Re: Implementing ORCID auth: Problem with cas.authn.pac4j.oauth2[0].profile-url

2023-11-08 Thread Aleix Mariné
So, I have found this documentation. Should I implement a class that implements this interface? h) OAuth20ProfileController (org.jasig.cas.support.oauth.web) This controller returns a

[cas-user] Re: Implementing ORCID auth: Problem with cas.authn.pac4j.oauth2[0].profile-url

2023-11-08 Thread Aleix Mariné
So, I have found this documentation that explain the inner classes used by CAS to manage the OAUTH stack. Should I reimplement this class? h) OAuth20ProfileController

[cas-user] Re: Implementing ORCID auth: Problem with cas.authn.pac4j.oauth2[0].profile-url

2023-11-08 Thread Aleix Mariné
Dear Meysam, Thank you for your response. I imagined the possibility of adding a bean that acts as a wrapper for that particular endpoint, but I do not know what bean I need to implement... Do you have any hint or tip of how this should be implemented? Or where I can find a documentation

[cas-user] Re: Implementing ORCID auth: Problem with cas.authn.pac4j.oauth2[0].profile-url

2023-11-07 Thread Meysam Shirazi
I think you need to develop a wrapper API for profile-url like this(a normal api):https://www.googleapis.com/oauth2/v3/userinfo, so you can get the uid and send it in custom format to https://api.sandbox.orcid.org/v3.0/{uid}/record . On