In code, redirectUri : ’ http://localhost:4200/cbokta’ represents that once okta authenticate my users, it redirect them to this path.
But when they logout i want to redirect to ‘http://localhost:4200/login’ which is what i have setup in okta web configuration under “logout redirect URI”. Is my understanding wrong about using “logout redirect URI” configuration.
The login redirect uri is where unauthenticated users will be redirected to when they try to access a protected uri (e.g., ~/account_balance) without proof of authentication (e.g., a session cookie). The logout redirect uri is where users will be redirected to after they click the logout link.
OIDC is strict about matching values in certain fields in the request against those registered at the IDP (the Okta app). The error message is about the mismatch between the logout redirect uri in the GET request and that in the app registration.