I’m looking to implement Google Social Auth inside a Self-Hosted Sign-In widget and I’m looking at the 2 options :
IdP Discovery
Google Social login button (seems to work for now)
The widget will be hosted as a react app but I’m simply testing and finding pros & cons using a SPA application in Okta. For now I have an issue on both solution using SPA :
For IdP Discovery, I’m getting redirect to Google (standard behavior here) to sign in but right after I’m getting a 404 error from Okta for url :
Hello! First I’ll drop the disclaimer in here that Okta doesn’t officially support IDP discovery flows in the self-hosted widget due to various quirks. That being said, happy to try and help best I can.
You will want to place the app embed link in your requestContext:
Having this configured, the App Embed link can be retrieved for the target application from the General tab, under the App Embed Link section, the Embed Link field information.
As for the other issue - are you seeing the 404 on /sessions/me in a localhost test environment or are your requests to Okta coming from a hosted application?