
ManjunathOKTaK.29808 (Customer) asked a question.
Hi Team,
I'm integrating Okta user authentication in my angular application, and I need support on below issues,
I'm using custom sign in widget and below are URIs details,
Login redirect URIs : http://localhost:4200/login/callback
Logout redirect URIs : http://localhost:4200
- The issue I'm facing is, after successful user authentication, Okta redirects to application to http://localhost:4200/login/callback, but I want application to redirect to my custom url something like http://localhost:4200/userDashbaord. userDashbaord will be my landing screen after authentication.
- Second issue is when I sign-out from the application it redirects to http://localhost:4200 but I want it should redirect to the Okta login page.
- I have added below login widget under loginComponent.
widget = new OktaSignIn({
el: '*okta-signin-container',
baseUrl: 'https://dev-84840028.okta.com',
logo: '../../../assets/images/sample_logo.png',
i18n: {
en: {
'primaryauth.title': 'Sign In',
},
},
authParams: {
pkce: true
},
clientId: '0oao82zdhtuXjc57j5d6',
redirectUri: 'http://localhost:4200/login/callback',
features: {
registration: true, // Enable self-service registration flow
rememberMe: true, // Setting to false will remove the checkbox to save username
selfServiceUnlock: true, // Will enable unlock in addition to forgotten password
router: true, // Leave this set to true for the API demo
},
});
Your help will highly appreciated.
Thanks in advance.

A good solution for the first issue is described here:
https://developer.okta.com/docs/guides/sign-into-spa/angular/handle-callback/
That article covers the second issue as well.
You can open a ticket with the developer team if you require additional support by sending an email to developers@okta.com