Dash - Okta Auth - Bad Request 400 error

Hi all,

I’m trying set up Okta auth on my Dash app. I use the dash-okta-oauth2 library.
I managed to connect up my Okta app and the dash app, however I keep getting Bad Request (400) error from Okta. It seems to have issues with the redirect_url, but I cannot figure out what the problem is.

Here is the request:
https://dev-XXXX.okta.com/oauth2/default/v1/authorize?response_type=code&client_id=XXXX&redirect_uri=http%3A%2F%2F127.0.0.1%3A8050%2Flogin%2Fokta%2Fauthorized&scope=openid+email+profile&state=XXXX

I tried to set the Sign-in redirect URIs in the Okta App but it didn’t change the outcome. I’m quite new to Okta so probably I’m missing something there.

I would really appreciate some help on this.

Thank you!
@nicohein @florescorreia

1 Like

I just got it working.

If anyone come across this:
Set the Okta App’s sign-in redirect URI to:

http://127.0.0.1:8050/login/okta/authorized

2 Likes