REST calls for google/facebook login

This topic has 5 replies, 2 voices, and was last updated 4 years, 12 months ago by Andy Cory.

  • Author
    Posts
  • #17953
     yathi
    Participant

    Hi All,

    Need some expert advice from you for below query.

    In our environment, we have integrated facebook and google to the OpenAM environment after creating a api project at the Oauth provider level. While testing the login access, its working as expected. Now we need to test this flow using the REST APIs. We have a situation where a mobile application is integrating with OpenAM and all calls are expected on the REST API level. We have tested the local/external identity directory level authentication flows using the openAM REST calls and able to generate the tokenID. If we need to authenticate a user via google/facebook, how will be the REST call approach, if possible a sample syntax or documents please.

    Many thanks in advance.

    #17977
     Andy Cory
    Participant

    I’m not quite clear on what use-case you are working towards. Is OpenAM your Oauth2 provider, and the mobile device your client? Or is OpenAM the client and Google/Facebook the provider?

    Andy

    #17991
     yathi
    Participant

    Hi Acory,

    Thanks for the reply, in fact I replied here last week itself but didnt reflect here.

    In our case, the mobile device is integrated with OpenAM, again openAM configured with facebook/google for the social authentication.

    Now from mobile device, we are able to authenticate local users through REST API. We are looking for an approach for the social authentication. I mean, the REST API calls from the mobile application to OpenAM for authenticating a user via facebook/google. While I am going through this forum, I saw a similar post but its not solved ( https://forum.forgerock.com/topic/social-login-through-openam-api/ )

    #18000
     Andy Cory
    Participant

    Hi

    Results seem to vary as to whether the problem in that post was solved. The steps given by andyr work for him on OpenAM v13, though he had to handle cookies himself. Which OpenAM version are you using? Did andyr’s steps not work for you with the custom cookie handling? I’ve not had to realise this use-case myself.

    Andy

    #18007
     yathi
    Participant

    Hi Andy,

    I am yet to test it on our environments, I was just researching more on that area. I am currently using OpenAM 13 and its about to update to OpenAM 13.5

    Thanks,
    Yathi

    #18014
     Andy Cory
    Participant

    Hi Yathi

    As I said, I can’t guarantee success, I’ve not tried the scenario myself. The steps in the post you referenced look both comprehensive and promising. It will be interested to hear if it worked for you. Good luck!

    Andy

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

©2022 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?