
lsil8 (lsil8) asked a question.
Hi All
I am trying to configure my app to use okta oauth2 and i get as far as when i click the sign in with okta it shows me 400 Bad Request, but no further details of what is wrong
any ideas what i can troubleshoot, i can confirm the redirect uri is correct
here is my config(redacted of course)
"oauth2": [{
"enable": true,
"debug": true,
"client_id": "redacted",
"client_secret": "redcacted",
"project_id": "myapp",
"auth_uri": "https://-xxx.okta.com/oauth2/default/v1/authorize",
"token_uri": "https://xxx.okta.com/oauth2/default/v1/token",
"redirect_uri": "https://app1.xxx.com/api/v3/oauth2/auth",
"service_redirect": "/api/v3/oauth2/redirect",
"profile_uri": "https://xxxx.okta.com/oauth2/default/v1/userinfo",
"grant_type": "authorization_code",
"response_type": "code",
"provider_name": "okta",

Hi @lsil8 (lsil8),
Thank you for posting on the Okta community page!
I have done some research related to the error message that you have received and I have managed to find a couple of KB articles that also provide a solution to the issue:
Additionally, I would advise to also try and capture a trace (HAR file/Fiddler) when replication the behaviour, as additional info about the error may be reported there.
My advice would be to also leverage the Okta Developer forums for this type of questions and take advantage of their expertise.