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-oauth/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/au
>>> thorize/?client_id=xxx&scope=%2Forcid-profile%2Fread-limited
>>> &response_type=code&redirect_uri=https%3A%2F%2Fdesktop-
>>> d8r3ca4%3A8443%2Fcas%2Flogin%3Fclient_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/
>>>> OrcidApi20.java#L20)
>>>>
>>>> Can you post it here?
>>>>
>>>> - Facebook:
>>>>
>>>> Are you sure you defined the callback URL: https://desktop-d8r3ca4:8
>>>> 443/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%
>>>>> 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"
>>>>> <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/ap
>>> ereo.org/d/msgid/cas-user/9814538f-2def-441b-ae6b-16ab2b274a
>>> b8%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/a912e4f4-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/apereo.org/d/msgid/cas-user/CAP279LySHYQreqWy_mzriMO48-%2BxVov-LnqBaQDF7j3Ngu1HHw%40mail.gmail.com.

Reply via email to