spring boot 2 M5 oauth身份验证问题

问题描述 投票:1回答:1

我正在使用Spring boot 2 M5和spring oauth我为我的oauth客户端应用程序配置了这个配置

security:
  oauth2:
    client:
        registration:
            my-client:
                client-id: blabla
                client-secret: asecret
                client-name: a name
                provider: my-provider
                scope: read
                redirect-uri: https://localhost:8780/dp
                authentication-method: basic
                authorization-grant-type: authorization_code
    provider:
        my-provider:
            authorization-uri: https://blabla/oauth-server/oauth/authorize
            token-uri: https://blaba/oauth-server/oauth/token
            user-info-uri: https://lmfr:8780/user
            user-name-attribute: username

我原本希望被重定向到我的Oauth提供程序的登录页面,但我会被重定向到默认的spring登录页面。

有什么建议吗?

spring spring-boot spring-security spring-security-oauth2
1个回答
1
投票

删除redirect-uri然后它应该工作

另见bug

© www.soinside.com 2019 - 2024. All rights reserved.