<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z0000AHYPceCQHOkta Classic EngineAuthenticationAnswered2025-12-31T09:00:24.000Z2024-11-18T10:39:08.000Z2024-11-29T16:42:34.000Z
OktaCallbackComponent Unable to Redirect Angular 17

Application URL where stuck: [redacted by moderator]

Route: { path: ‘implicit/callback’, component: OktaCallbackComponent }

app.module.ts:

const oktaAuth = new OktaAuth({

issuer: environment.okta_org_issuer,

clientId: environment.okta_client_id,

redirectUri: environment.redirectUri,

scopes: [‘openid’, ‘profile’, ‘offline_access’]

});

providers: [

importProvidersFrom(OktaAuthModule.forRoot({oktaAuth})),

]

Login component:

this.oktaAuth.signInWithRedirect();

Package.json:

“@okta/okta-angular”: “^6.4.0”,

“@okta/okta-auth-js”: “^7.8.1”,

“@okta/okta-signin-widget”: “^7.24.0”,

Note: No CORS issue in console.

Tried this

devMode: true

got this

{accessToken: undefined, idToken: undefined, refreshToken: undefined, isAuthenticated: false}

 


  • bx249 (bx249)

    Hi @DianaL.19788 (Customer Support Online Community and Social Care)​ ,

    FYI,

    I have finally resolved this issue. In my redirectUri, there was an extra '/' at the last (i.e., "http://localhost:8039/implicit/callback/"). The same was present in the Okta portal as well, and it was working previously. So, I didn't change the application portal but my application environment file, which is working fine.

     

    Thanks 🙂

    Expand Post
    Selected as Best
  • DianaL.19788 (Customer Support Online Community and Social Care)

    Hello @bx249 (bx249)​ , thank you for contacting Okta Community!

    I've reviewed our documentation for something relevant. It looks like your question is more appropriate for our dedicated Okta Developer Forum. I advise reaching out via devforum.okta.com  as they will have more insight into this topic. 

     

    While we'll do our best to answer your questions here, this medium is more inclined towards Okta's core products and features (non-developer work).

     

    Regards. 

    --

    Help others in the community by liking or hitting Select as Best if this response helped you.

    Expand Post
  • bx249 (bx249)

    Thank you @DianaL.19788 (Customer Support Online Community and Social Care)​  for your reply. I posted the same in devforum.okta.com on November 13th, but it still remains unanswered hence I posted here as well.

    • DianaL.19788 (Customer Support Online Community and Social Care)

      @bx249 (bx249)​ If you have a paid production account with us, you can leverage it to open a case via the support.okta.com site or call the support line.

       

      Regards.

      -----------------------------------------------------------------

      Help others in the community by liking or hitting Select as Best if this response helped you.

      Expand Post
  • bx249 (bx249)

    Hi @DianaL.19788 (Customer Support Online Community and Social Care)​ ,

    FYI,

    I have finally resolved this issue. In my redirectUri, there was an extra '/' at the last (i.e., "http://localhost:8039/implicit/callback/"). The same was present in the Okta portal as well, and it was working previously. So, I didn't change the application portal but my application environment file, which is working fine.

     

    Thanks 🙂

    Expand Post
    Selected as Best
This question is closed.
Loading
OktaCallbackComponent Unable to Redirect Angular 17