我已经建立了一个基本应用程序,以使用带有okta的spring boot来运行OAuth2身份验证,但收到以下错误,请您帮我解决这个问题?
我的application.properties
:
okta.oauth2.client-id=[My client-id]
okta.oauth2.client-secret=[My client-secret]
okta.oauth2.issuer=dev-3169492.okta.com/oauth2/default
server.port=9090
spring.main.allow-bean-definition-overriding=true
错误:
org.springframework.security.oauth2.client.resource.UserRedirectRequiredException:
A redirect is required to get the users approval
at org.springframework.security.oauth2.client.token.grant.code
.AuthorizationCodeAccessTokenProvider
.getRedirectForAuthorization(AuthorizationCodeAccessTokenProvider.java:359)
~[spring-security-oauth2-2.3.3.RELEASE.jar:na]
at org.springframework.security.oauth2.client.token.grant.code
.AuthorizationCodeAccessTokenProvider
.obtainAccessToken(AuthorizationCodeAccessTokenProvider.java:205)
~[spring-security-oauth2-2.3.3.RELEASE.jar:na]
春季启动版 2.3.4。发布
okta版本 ` 0.6.0
也尝试了1.4.0。