
bx249 (bx249) asked a question.
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}

Hi @User17157611498146715886 (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 🙂