迁移到最新的Spring Boot和Spring Cloud后,身份验证服务器(/ oauth / token)无法工作

时间:2018-07-29 06:24:16

标签: spring-boot oauth-2.0 spring-cloud

我从

迁移
    <parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>1.4.4.RELEASE</version>
</parent>

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-dependencies</artifactId>
            <version>Camden.SR5</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

收件人

  <parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.0.1.RELEASE</version>
  </parent>
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-dependencies</artifactId>
        <version>Finchley.RELEASE</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>

过去使用身份验证端点(/ oauth / token)可以在旧的SpringBoot / Cloud上正常工作,但是经过上述迁移之后,尽管有有效的凭证,我也无法再访问/ oauth / token端点? 响应为:

{
"error": "unauthorized",
"error_description": "Full authentication is required to access this resource"

}

0 个答案:

没有答案