I am using the OktaSignInWidget and it redirects to Okta userHome after login with Google. I want it to redirect to my application running on localhost. Is there some setting I am missing in the widget config?
Here is my code -
const widget = new OktaSignIn({
baseUrl: oktaConfig.baseUrl, // this is {myOrg}.okta.com url that Okta created for me
idps: [{ type: ‘GOOGLE’, id: ‘*****’ }],
authParams: {
display: ‘popup’
}
});
I tried the suggestions in the threads you had suggested but none of them seem to work, I still get redirected to Okta’s app/userHome instead of my localhost. Here is the updated config -
Can you please check if the URL that you are passing in the redirect_uri query parameter on /authorize endpoint is added in Okta under Admin >> Security >> API >> Trusted Origins (or Admin >> API >> Trusted Origins if using the developer console) with redirect option enabled?
Guys this is urgent as I am evaluating Okta for my use-case. My requirement is very simple and I am really hoping that Okta works for something as simple as this.
Can you please open a support case with us through an email to developers@okta.com in order to further review this use-case and provide the next steps?
I’m stuck with the same issue… I don’t know how many hours I spent on this, frustrating as this is the most simplest usecase -> Authenticate with Okta then redirect to custom page… Don’t understand why this is so HARD
For anyone still trying to get this working, take a look at the following KB article describing how to create custom buttons in the widget so that users can be redirected to a different location than the Okta dashboard: Social Auth redirect not working with Okta Sign-in Widget