Esteve Aviles commented on Feature Request PLINK-283

Hi,
In the end I have implemented the following solution to JAX-RS support for social oauth2 login.

1. Publish a REST API with methods to start the auth2 protocol conversation:
Method1: /api/v1/auth/oauth2/authorizationurl?providerID=PROVIDER_ID--> GET
In client app redirect to social oauth provider site.
When callback function is passed retrieve auth code and call the next API:
Method2: /api/v1/auth/oauth2/registration/PROVIDER_ID?authorizationCode=4%2FakHdEp0ZNf1ALQ_Ycs2aNXdUgnhQ.0mKOEcbxr8AbOl05ti8ZT3bp7nTNg --> GET

2. Use a java social oauth client implementation to handle the negotiation with each provider with a unified API from my app point of view. I am using socialauth.

3. After that process I obtain user profile. I use this information to perform either authentication or registration if not previously registered using Picketlink.

This is just to share.

Regards,
Esteve

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira