How do I identify currently logged on user in this case?
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?
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 email@example.com for additional assistance.