Cannot POST /implicit/callback

I have implemented OKTA login for my application sing-in page. When I tried to login from my application, the login works fine and I’m to do what I wanted. But when I edited my application setting to Either Okta or App from App Only, and tried to login from the okta dashboar, I’m getting this error: Cannot POST /implicit/callback while redirecting.

    const oktaConfig = new AuthService({
        issuer:'https://{domail}/oauth2/default  ',
        client_id:'{cliendid}',
        redirect_uri:window.location.origin + '/implicit/callback',
        pkce:true
    });

<Security authService={oktaConfig} key={key} >
                                        <SecureRoute exact path="/protected" component={Protected}/>
                            <Route path={prop.path} key={key} component={prop.component} />
                                        <Route path="/implicit/callback" component={LoginCallback} />
                        </Security>

Please help.

Did you follow this https://support.okta.com/help/s/article/How-to-make-the-OIDC-OAuth-App-visible-in-Okta-dashboard-and-what-are-the-login-flows-available?language=en_US

Hey,

I fixed the issue. I had a do some changes on the configuration part and it’s working now.

Thanks
Ashok.R

Hi, I’m having this same issue with the configuration. What did you change in config to get it working?

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.