Hello,
I am currently experimenting with the Okta widget to integrate in a React SPA. I am using the samples-js-react/custom-login at master · okta/samples-js-react · GitHub project for my tests. It works with email+password. However when connecting via an external Identity Provider, Okta doesn’t return an authentication code.
I am properly redirected to the Identity Provider, the authentication is validated (The events show success in the System Log), but the redirection to the route /implicit/callback
does not contain the authentication code. Instead, Okta redirects to http://localhost:3000/implicit/callback?fromLogin=true
, so the authentication process doesn’t complete.
The OktaSignIn
configuration:
{
baseUrl,
clientId,
redirectUri: 'http://localhost:3000/implicit/callback',
features: {
idpDiscovery: true
},
idpDiscovery: {
requestContext: 'http://localhost:3000/implicit/callback'
},
authParams: {
pkce: true,
issuer,
display: 'page',
responseMode: 'query',
scopes: ['openid'],
},
This topic seems to have the same symptoms Okta sign-in widget does not complete sign-in after authentication with IDP Was any solution found for this issue?
Thanks,
mathieuv