Hi,

Before fixing things in CAS, you should start to make it work in pac4j and
run successfully a manual test like these ones:
https://github.com/pac4j/pac4j/tree/master/pac4j-oauth/src/test/java/org/pac4j/oauth/run
Thanks.
Best regards,
Jérôme


On Thu, Feb 1, 2018 at 4:03 PM, Neha Gupta <[email protected]> wrote:

> Hello Jérôme,
>
> Thanks a lot for support.
>
> So finally i was able to compile pac4j with the required changes but still
> not able to access ORCID login page. Still same problem is coming "There
> has been a problem with the server. If this problem persists please contact
> administrator"
>
> After looking into the CAS traces i found out that the URL which CAS is
> building has "/" at the end of authorise and because of this ORCID login
> page is not getting displayed.
>
> URL which CAS is building is below and is not accessible: -
>
> http://www.orcid.org/oauth/authorize*/*?client_id=APP-
> UPW3FFH08YVI6YUJ&scope=%2Fa
> uthenticate%2Fread-limited&response_type=code&redirect_uri=http%3A%2F%
> 2Fidiv-dev1.inf-bb.uni-jena.de%3A8080%2Fcas%2Flogin%3Fclient_name%
> 3Dorcid#show_login
>
>
> The below URL after removing / is accessible: -
>
> http://www.orcid.org/oauth/authorize?client_id=APP-
> UPW3FFH08YVI6YUJ&scope=%2Fa
> uthenticate%2Fread-limited&response_type=code&redirect_uri=http%3A%2F%
> 2Fidiv-dev1.inf-bb.uni-jena.de%3A8080%2Fcas%2Flogin%3Fclient_name%3Dorcid#show_login
>
>
> Looking forward for your support on this.
>
>
> Thanks and Regards
> Neha Gupta
>
>
>
>
> On Wed, Jan 31, 2018 at 11:13 AM, Jérôme LELEU <[email protected]> wrote:
>
>> Hi,
>>
>> OK. So let's take problems in order:
>>
>> - regarding the AbstractMethodError error, it certainly comes from the
>> fact that you don't have the same version of pac4j-core and the other
>> pac4j-* modules (check that with a "mvn dependency:tree" or
>> "gradlew dependencies"). It should be 2.2.1 for all modules to use the
>> latest version.
>>
>> - regarding the Illegal key size error, either it comes from the key
>> size you use or from the fact you haven't installed the unlimited strength
>> policy for your JDK.
>>
>> We don't use the v2 API as I don't see any v2.0 text in the URL we use. I
>> remember taking a look at this integration, but it wasn't really easy to
>> test it. It might be easier with the version 2.
>>
>> Your contribution will be welcome.
>>
>> Thanks.
>> Best regards,
>> Jérôme
>>
>>
>> On Tue, Jan 30, 2018 at 1:36 PM, Neha Gupta <[email protected]>
>> wrote:
>>
>>> Hello  Jérôme,
>>>
>>> Thanks a lot for update. I tried making changes in the file you
>>> suggested but always not able to access CAS login page after that as CAS is
>>> throwing some error. Traces(CASTraces.txt) attached.
>>> Request you to please help me on this.
>>>
>>> Also when i tried to package the complete pac4j package i am getting
>>> error in JWT. Traces attached(Pac4jTraces.txt) for the same.
>>>
>>>
>>> Also i had a talk with ORCID support team and here is the extract from
>>> mail regarding the version: -
>>>
>>>
>>>
>>> *By March 1st, all calls made to the Public API (using the pub.orcid.org
>>> <http://pub.orcid.org> domain) must use version 2.0 or 2.1; calls made
>>> using version 1.2 will return an error.If you are still using version 1.2
>>> you need to be planning your upgrade to version 2.0. On this page you can
>>> find the necessary changes to
>>> implement: https://members.orcid.org/api/news/xsd-20-update
>>> <https://members.orcid.org/api/news/xsd-20-update> *
>>>
>>>
>>> I don't know which version of ORCID API CAS is using so just thought of
>>> sharing this information with you.
>>>
>>>
>>> Thanks and Regards
>>> Neha Gupta
>>>
>>> On Tue, Jan 23, 2018 at 11:28 AM, Jérôme LELEU <[email protected]> wrote:
>>>
>>>> Hi,
>>>>
>>>> In pac4j, you can set the scope of the Orcid client. It doesn't seem
>>>> possible within the CAS server: https://apereo.github.
>>>> io/cas/5.2.x/installation/Configuration-Properties.html#orcid
>>>>
>>>> That said, this is easy to change: don't hesitate to submit a PR for
>>>> that in the CAS project.
>>>>
>>>> What would be the right default scope to change that in pac4j:
>>>> https://github.com/pac4j/pac4j/blob/master/pac4j-oaut
>>>> h/src/main/java/org/pac4j/oauth/client/OrcidClient.java#L18 ?
>>>>
>>>> Thanks.
>>>> Best regards,
>>>> Jérôme
>>>>
>>>>
>>>> On Mon, Jan 22, 2018 at 3:19 PM, Neha Gupta <[email protected]>
>>>> wrote:
>>>>
>>>>> Hello Jérôme,
>>>>>
>>>>> I posted the reply last week but seems it lost somewhere. So posting
>>>>> it again: -
>>>>>
>>>>> *ORCID: -*
>>>>> Problem seems to be with scope. Please see the URL where new scopes
>>>>> are described and also had a talk with ORCID support and according to them
>>>>> the scope /orcid-profile belongs to an older version of API. Current 2.1
>>>>> API only supports scopes mentioned in the link.
>>>>>
>>>>> https://members.orcid.org/api/oauth/orcid-scopes
>>>>>
>>>>> FACEBOOK: -
>>>>> After defining correctly the "App Domain" and "Site URL" delegation to
>>>>> facebook started working.
>>>>>
>>>>>
>>>>> Thanks a lot for your support.
>>>>>
>>>>> Regards
>>>>> Neha Gupta
>>>>>
>>>>> On Tuesday, January 16, 2018 at 10:55:11 AM UTC+1, leleuj wrote:
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> 1) Orcid
>>>>>>
>>>>>> The URL looks good: I would try another value for the scope. Have you
>>>>>> taken a look at the documentation?
>>>>>>
>>>>>> 2) Facebook
>>>>>>
>>>>>> I opened the Facebook console, and I see a "Facebook login" item in
>>>>>> the left menu with a "Parameters" submenu, in which you have several 
>>>>>> flags
>>>>>> to enable, especially "web OAuth connection": is this checked? There is
>>>>>> also a "redirection URL" input field you may need to fill, depending on 
>>>>>> the
>>>>>> version of your FB app.
>>>>>>
>>>>>> Thanks.
>>>>>> Best regards,
>>>>>> Jérôme
>>>>>>
>>>>>>
>>>>>> On Mon, Jan 15, 2018 at 2:43 PM, Neha Gupta <[email protected]>
>>>>>> wrote:
>>>>>>
>>>>>>> Hello Jérôme,
>>>>>>>
>>>>>>> Below is the update
>>>>>>>
>>>>>>> *ORCID: -*
>>>>>>>
>>>>>>> The URL which is getting called before is "
>>>>>>> http://www.orcid.org/oauth/authorize/?client_id=xxx&scope=%
>>>>>>> 2Forcid-profile%2Fread-limited&response_type=code&redirect_u
>>>>>>> ri=https%3A%2F%2Fdesktop-d8r3ca4%3A8443%2Fcas%2Flogin%3Fclie
>>>>>>> nt_name%3Dorcid"
>>>>>>>
>>>>>>> After seeing the Network calls it seems that 301 and 302 status code
>>>>>>> are being thrown in response of the above URL.
>>>>>>>
>>>>>>> *FACEBOOK:- *
>>>>>>> In facebook app console i don't see any place for callback
>>>>>>> URL.Fields as shown in attached snapshot are only available.
>>>>>>>
>>>>>>>
>>>>>>> Thanks a lot for your support.
>>>>>>>
>>>>>>>
>>>>>>> Regards
>>>>>>> Neha Gupta
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Friday, January 12, 2018 at 3:03:22 PM UTC+1, leleuj wrote:
>>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> Please don't output your id and secret in your emails!
>>>>>>>>
>>>>>>>> - Orcid:
>>>>>>>>
>>>>>>>> I think there is an URL called before the one given in the error
>>>>>>>> message, it should be something like http://www.orcid.org/oaut
>>>>>>>> h/authorize/xxx (https://github.com/pac4j/pac4j/blob/master/
>>>>>>>> pac4j-oauth/src/main/java/org/pac4j/scribe/builder/api/Orcid
>>>>>>>> Api20.java#L20)
>>>>>>>>
>>>>>>>> Can you post it here?
>>>>>>>>
>>>>>>>> - Facebook:
>>>>>>>>
>>>>>>>> Are you sure you defined the callback URL:
>>>>>>>> https://desktop-d8r3ca4:8443/cas/login?client_name=Facebook in
>>>>>>>> your Facebook app console?
>>>>>>>>
>>>>>>>> Thanks.
>>>>>>>> Best regards,
>>>>>>>> Jérôme
>>>>>>>>
>>>>>>>>
>>>>>>>> On Fri, Jan 12, 2018 at 10:57 AM, Neha Gupta <[email protected]>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Dear CAS people,
>>>>>>>>>
>>>>>>>>> Good morning!
>>>>>>>>>
>>>>>>>>> I am trying to delegate CAS authentication to Orcid and Facebook
>>>>>>>>> and as such created war file after updating "pom.xml" and 
>>>>>>>>> "cas.properties"
>>>>>>>>> as follows: -
>>>>>>>>>
>>>>>>>>> *pom.xml*
>>>>>>>>>
>>>>>>>>> <dependency>
>>>>>>>>>             <groupId>org.apereo.cas</groupId>
>>>>>>>>>             <artifactId>cas-server-support
>>>>>>>>> -pac4j-webflow</artifactId>
>>>>>>>>>             <version>5.2.0</version>
>>>>>>>>>         </dependency>
>>>>>>>>> <dependency>
>>>>>>>>>
>>>>>>>>> *cas.properties*
>>>>>>>>>
>>>>>>>>>  cas.authn.pac4j.orcid.id=xxx
>>>>>>>>>  cas.authn.pac4j.orcid.secret=yyy
>>>>>>>>>  cas.authn.pac4j.orcid.clientName=orcid
>>>>>>>>>
>>>>>>>>> and similarly given for Facebook as well but when i am trying to
>>>>>>>>> do so i am getting error with both Orcid and Facebook
>>>>>>>>>
>>>>>>>>> *Problem with ORCID: -*
>>>>>>>>>
>>>>>>>>> "There has been a problem with the server". If problem persists
>>>>>>>>> please contact ORCID support.  URL which CAS is hitting is "
>>>>>>>>> https://orcid.org/signin?oauth&null#show_login&quot; which seems
>>>>>>>>> little weird to me. I already contacted Orcid support group but 
>>>>>>>>> according
>>>>>>>>> to them there is no problem at their end and asked me to look into 
>>>>>>>>> the URL.
>>>>>>>>>
>>>>>>>>> *Problem with Facebook: -*
>>>>>>>>>
>>>>>>>>> "Sorry something went wrong"*. *URL which CAS is hitting is
>>>>>>>>> "https://www.facebook.com/v2.8/dialog/oauth?response_type=co
>>>>>>>>> de&client_id=476366362744200&redirect_uri=https%3A%2F%2Fdesk
>>>>>>>>> top-d8r3ca4%3A8443%2Fcas%2Flogin%3Fclient_name%3DFacebook&sc
>>>>>>>>> ope=email%2Cuser_likes%2Cuser_about_me%2Cuser_birthday%2Cuse
>>>>>>>>> r_education_history%2Cuser_hometown%2Cuser_relationship_deta
>>>>>>>>> ils%2Cuser_location%2Cuser_religion_politics%2Cuser_relat
>>>>>>>>> ionships%2Cuser_work_history%2Cuser_website%2Cuser_photos%
>>>>>>>>> 2Cuser_events%2Cuser_actions.music%2Cbadscope&state=2fb5c80427"
>>>>>>>>> <https://www.facebook.com/v2.8/dialog/oauth?response_type=code&client_id=476366362744200&redirect_uri=https%3A%2F%2Fdesktop-d8r3ca4%3A8443%2Fcas%2Flogin%3Fclient_name%3DFacebook&scope=email%2Cuser_likes%2Cuser_about_me%2Cuser_birthday%2Cuser_education_history%2Cuser_hometown%2Cuser_relationship_details%2Cuser_location%2Cuser_religion_politics%2Cuser_relationships%2Cuser_work_history%2Cuser_website%2Cuser_photos%2Cuser_events%2Cuser_actions.music%2Cbadscope&state=2fb5c80427>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> I request you to please look into the matter and  let me know in
>>>>>>>>> case some configuration is missing.
>>>>>>>>>
>>>>>>>>> Wish you a nice weekend.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Thanks and Regards
>>>>>>>>>
>>>>>>>>> Neha Gupta
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> - 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/CAF2
>>>>>>>>> xoWpeD5M7iiRLyy7Bqhgx_dzvyo45L%3DVsUTxMiFDXg4W6Ag%40mail.gmail.com
>>>>>>>>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAF2xoWpeD5M7iiRLyy7Bqhgx_dzvyo45L%3DVsUTxMiFDXg4W6Ag%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/9814
>>>>>>> 538f-2def-441b-ae6b-16ab2b274ab8%40apereo.org
>>>>>>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/9814538f-2def-441b-ae6b-16ab2b274ab8%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/a912
>>>>> e4f4-a38b-47a0-886b-107ca0af326c%40apereo.org
>>>>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/a912e4f4-a38b-47a0-886b-107ca0af326c%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/ap
>>>> ereo.org/d/msgid/cas-user/CAP279LySHYQreqWy_mzriMO48-%2BxVov
>>>> -LnqBaQDF7j3Ngu1HHw%40mail.gmail.com
>>>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAP279LySHYQreqWy_mzriMO48-%2BxVov-LnqBaQDF7j3Ngu1HHw%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/ap
>>> ereo.org/d/msgid/cas-user/CAF2xoWrUD%3Dv7bQtJh4CaBvp3f%2Bw6g
>>> vNbqiimPpTTNgOXwYBS2w%40mail.gmail.com
>>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAF2xoWrUD%3Dv7bQtJh4CaBvp3f%2Bw6gvNbqiimPpTTNgOXwYBS2w%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/ap
>> ereo.org/d/msgid/cas-user/CAP279Lxi5oSvD7Nty54vmnLeLBjWVVq04
>> sEz9A1UdkmrkknvOQ%40mail.gmail.com
>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAP279Lxi5oSvD7Nty54vmnLeLBjWVVq04sEz9A1UdkmrkknvOQ%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/CAF2xoWoxjpQ3iNOtj76hGYvXzvxOR
> Y3f1CeSvWkqcYbZ3FmpjA%40mail.gmail.com
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAF2xoWoxjpQ3iNOtj76hGYvXzvxORY3f1CeSvWkqcYbZ3FmpjA%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/CAP279LzQud7ELp7W%3DzqG19MeM8KiDkAE3ZVhiuHB31b8t22A7A%40mail.gmail.com.

Reply via email to