Thanks Jerome.

I am require information from facebook, google + but not getting email address 
from linkedin.
and I checked LinkedInAttributesDefinition class and LinkedInProfile class.
and found that getEmail and getPictureUrl mehod in LinkedInProfile class is 
returning null as well as both email and picutre-url is absent from 
LinkedInAttributesDefinition class.

and both above field is listed in linkedin api site.

So is there bug in scrip ub library ?

if I modified both classes will I get both value?

Thanks and Regards,
Rohit Kotecha

From: Jérôme LELEU [mailto:[email protected]]
Sent: Tuesday, July 02, 2013 9:39 PM
To: [email protected]
Cc: [email protected]; [email protected]; Rohit Kotecha
Subject: Re: [cas-user] how to get user profile information on client site 
using CAS oauth

Hi,

All the attributes are defined in this class : 
https://github.com/leleuj/pac4j/blob/1.3.x/src/main/java/org/scribe/up/profile/facebook/FacebookAttributesDefinition.java.
These are the possible attributes names you can specified in the 
allowedAttributes : in your case, it must be picture.
Take a look at 
https://github.com/leleuj/pac4j/blob/1.3.x/src/main/java/org/scribe/up/profile/facebook/FacebookProfile.java
 to understand how the getPictureUrl() method retrieves information.
Best regards,
Jérôme




On Tuesday, July 2, 2013 4:17:59 PM UTC+2, Rohit Kotecha wrote:
Hi Team,

I have successfully integrate CAS using social media login with our spring 
security based web application.

But I am facing problem in getting user's profile information from different 
sites.

e.g. to fetch user's picture url I am specifying "picture_url" attribute in 
deployerConfigContext.xml file but on client site I am not getting it.

e.g. some sites give user information as object. google plus give user's first 
name and last name as "name" object. so
if I am specifying name.familyName or name.givenName on client side I am not 
getting this value.

<property name="allowedAttributes">
                  <list>
                    <!-- facebook -->
<!--                    <value>name</value>-->
<!--                    <value>first_name</value>-->
<!--                    <value>last_name</value>-->
<!--                    <value>email</value>-->
<!--                    <value>gender</value>-->
<!--                    <value>id</value>-->
<!--                -->
<!--                    -->
<!--                    <value>screen_Name</value>-->
<!--                    <value>profile_image_url</value>-->

                        <value>email</value>
                        <value>name.givenName</value>

<!--                    <value>first-name</value>-->
<!--                    <value>last-name</value>-->
<!--                    <value>picture-url</value>-->
<!--                    <value>emailAddress</value>-->


                  </list>

</property>

anything wrong with above configuration?

so any hint how to get such information on client side?

Thanks and Regards,
Rohit Kotecha



--
You are currently subscribed to [email protected]<javascript:> as: 
[email protected]<javascript:>
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

-**************Nihilent***************

" *** All information contained in this communication is confidential, 
proprietary, privileged

and is intended for the addressees only. If youhave received this E-mail in 
error please notify

mail administrator by telephone on +91-20-39846100 or E-mail the sender by 
replying to

this message, and then delete this E-mail and other copies of it from your 
computer system.

Any unauthorized dissemination,publication, transfer or use of the contents of 
this communication,

with or without modifications is punishable under the relevant law.



Nihilent has scanned this mail with current virus checking technologies. 
However, Nihilent makes no

representations or warranties to the effect that this communication is 
virus-free.



Nihilent reserves the right to monitor all E-mail communications through its 
Corporate Network. *** "



*************************************************************************-



-**************Nihilent***************
" *** All information contained in this communication is confidential, 
proprietary, privileged
and is intended for the addressees only. If youhave received this E-mail in 
error please notify
mail administrator by telephone on +91-20-39846100 or E-mail the sender by 
replying to
this message, and then delete this E-mail and other copies of it from your 
computer system.
Any unauthorized dissemination,publication, transfer or use of the contents of 
this communication,
with or without modifications is punishable under the relevant law.

Nihilent has scanned this mail with current virus checking technologies. 
However, Nihilent makes no 
representations or warranties to the effect that this communication is 
virus-free.

Nihilent reserves the right to monitor all E-mail communications through its 
Corporate Network. *** "

*************************************************************************-
-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to