How do I identify currently logged on user in this case? Skip to main content
https://support.okta.com/help/answers?id=9062a000000bmkxqai&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
Jatin VaidyaJatin Vaidya 

How do I identify currently logged on user in this case?

Hi All,

I will try to keep the question as clear and direct as possible.

0. Social authentication (Facebook) configured with Okta with redirect URI as URL to my custom webapp. This custom webapp relies on Okta for authentication.
1. User visits my custom webapp (unauthenticated) and clicks on the social authentication URL to login to my custom webapp.
2. User follows the normal flow, gets authenticated by facebook and thereby by Okta (as per usual flow) and is then redirected by Okta back to the custom webapp.
3. The entire flow is successful and the user can see an Okta session cookie set in the browser.
4. Custom webapp now needs to show the user their own profile.
Problem: How can my custom webapp identify who just logged in so that they can fetch their profile using API?

Thanks,
Jatin
Valentin NituValentin Nitu (Okta, Inc.)
Thank you for reaching our to us. Please reffer to our social auth (http://developer.okta.com/docs/api/resources/social_authentication.html) documentation for additional information.
The setup itself would be better handled via a support ticket outreach as additional informaion is required for us to understand your setup and how to assist you with the setup of it.
Please open a support ticket with us or reach out to our developer team at developers@okta.com for additional assistance.