I have an Angular app that is authenticating with an Okta org auth server. Running into an odd issue where I get an error 400 during the redirect only when a user first logs in and creates their profile, after they select a security image.
There is no additional info shown about the error, just “400 Bad Request - Your request resulted in an error” then a “Go to homepage” button that properly takes the user back to the app (logged in) when clicked.
The redirect URI is set to the Angular callback route and works perfectly for any subsequent time after that initial login/select photo, making this even more difficult to debug.
The request URL giving the 400 is https://[instance].okta.com/oauth2/v1/authorize/redirect?okta_key=[key],/login/login.htm?fromURI=%2Foauth2%2Fv1%2Fauthorize%2Fredirect%3Fokta_key%[key]
Has anyone else seen this? Is there some way I can get more info about what is causing this error?