Simple Authentication with Spring Security

Jai S

@mattraible Ok. Thank you for your response.

Hendi Santika

Hi, I already follow the instruction above but when login it always error:

Identity Provider: Unknown

Error Code: invalid_request

Description: The ‘redirect_uri’ parameter must be a Login redirect URI in the client app settings: https://dev-11119575-admin…

Here repo to reproduce → https://gitlab.com/hendisan… https://uploads.disquscdn.c…

Matt Raible

It looks like you’re missing the redirect URI this tutorial asks you to add (http://localhost:8080/login/oauth2/code/okta). Do you have that URL in your Okta OIDC app’s settings?

Hendi Santika

I already added that on branch okta.
But the result as above.

Matt Raible

It shouldn’t be in your code, it should be in Okta. If you’re confident everything is correct, I don’t know what the problem could be.

You should be able to see the URI that’s passed in by looking at the parameter value in the URL when you see the error.

Hendi Santika

Do You have tutorial video to explain Spring Boot Okta Login Integration?
Because If I clone this repo and change the issuer & url still error 400.

Matt Raible

Here’s a short and sweet one. https://developer.okta.com/…

Hendi Santika

It’s working now after I compare from Your video then I remove redirect-uri: http://localhost:8080/login/oauth2/code/okta properties.

Thanks