Java Spring oauth2/令牌POST方法未映射
我已经使用org.springframework.security.oauth:spring-security-oauth2:2.0.5.RELEASE-lib设置了oauth服务器。 而且我不能使用密码授予来使用资源所有者凭据对客户端进行身份验证。 我使用RFC6749-4.3。资源所有者密码凭据授予-方案 发送类似请求: 我明白了 此端点未映射。Java Spring oauth2/令牌POST方法未映射,java,spring,oauth,spring-security,spring-security-oauth2,Java,Spring,Oauth,Spring Security,Spring Security Oauth2,我已经使用org.springframework.security.oauth:spring-security-oauth2:2.0.5.RELEASE-lib设置了oauth服务器。 而且我不能使用密码授予来使用资源所有者凭据对客户端进行身份验证。 我使用RFC6749-4.3。资源所有者密码凭据授予-方案 发送类似请求: 我明白了 此端点未映射。 这是spring oauth2发行版吗?为什么要调用/token?我认为应该是/oauth/token…为什么不回答这个问题(因为它是正确的)?
这是spring oauth2发行版吗?为什么要调用/token?我认为应该是/oauth/token…为什么不回答这个问题(因为它是正确的)?
POST /token HTTP/1.1
Host: server.example.com
Authorization: Basic czZCaGRSa3F0MzpnWDFmQmF0M2JW
Content-Type: application/x-www-form-urlencoded
grant_type=password&username=johndoe&password=A3ddj3w
HTTP/1.1 405 Method Not Allowed