Hi, me again.

I read this in a forum thread, https://issues.jasig.org/browse/CAS-1041

Hi Wayne,

You don't need a specific DAO to get attributes. As you can read at :
https://wiki.jasig.org/display/CASUM/OAuth+client+support, the
OAuthAuthenticationMetaDataPopulator retrieves attributes from the OAuth
user profile and put them into the CAS principal
(Authentication.getAttributes()).
To push theses attributes to the application (client side), you need to use
SAML validation or customize the CAS validation.
Don't hesitate to ask your questions on the cas-user mailing list to share
with others...
Best regards,
Jérôme

Does anyone have an example about how to retrieves attributes from Oauth
user profile on deployerConfigContext.xml file ? FB access token in my case.

Thanks in advance.
-- Aldo Nievas
SATIO Web Development
[email protected]
M: 54 11 3487 4900



On Mon, May 21, 2012 at 5:10 PM, Aldo Nievas <[email protected]> wrote:

> Hi guys
> How can I get FB access token after FB authenticates request from CAS
> login ?
>
> URL is
> http://localhost:8080/cas/login?service=http://localhost:3000/my_portfolio
>
> and CAS log after authentication:
>
> WHO:
> [token:null,verifier:AQCxC_w7fUWiKNAntH10EBISUaLK3MVH5hzaY5R0qaVsd9Ejxft5c6_3g2lvjQPfjSrCeFFvr6pR0PIzYcybyuFuPZSrQ8LGU8OIAAAyEzpcrj-h8cBgfrHpFBKzQisq4cJ00tJg0xDJsPaBCF4OQkFdvaBYk2E4MPqyViVuYO1OpuZlKp0ZL5VFdbiuHn2NULo,providerType:FacebookProvider]
> WHAT: TGT-10-2UfvJdPaZfqFU0qy5dbFgesECwabRwfakxFOYWMvbpdnL3Jgza-cas
> ACTION: TICKET_GRANTING_TICKET_CREATED
> APPLICATION: CAS
> WHEN: Mon May 21 17:09:17 GMT-03:00 2012
> CLIENT IP ADDRESS: 0:0:0:0:0:0:0:1%0
> SERVER IP ADDRESS: 0:0:0:0:0:0:0:1%0
> =============================================================
>
> >
> 2012-05-21 17:09:17,165 INFO
> [org.jasig.cas.CentralAuthenticationServiceImpl] - <Granted service ticket
> [ST-10-vScAT1TISoavFTI1a02s-cas] for service [
> http://localhost:3000/my_portfolio] for user [FacebookProvider#563940921]>
> 2012-05-21 17:09:17,166 INFO
> [com.github.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit
> trail record BEGIN
> =============================================================
> WHO: FacebookProvider#563940921
> WHAT: ST-10-vScAT1TISoavFTI1a02s-cas for
> http://localhost:3000/my_portfolio
> ACTION: SERVICE_TICKET_CREATED
> APPLICATION: CAS
> WHEN: Mon May 21 17:09:17 GMT-03:00 2012
> CLIENT IP ADDRESS: 0:0:0:0:0:0:0:1%0
> SERVER IP ADDRESS: 0:0:0:0:0:0:0:1%0
> =============================================================
>
> Thanks in advance.
>
> -- Aldo Nievas
> SATIO Web Development
> [email protected]
> M: 54 11 3487 4900
>
>

-- 
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