Spring-Security-Oauth2: Full authentication is required to access this resource

前端 未结 7 2017
面向向阳花
面向向阳花 2020-12-02 18:20

I am trying to use spring-security-oauth2.0 with Java based configuration. My configuration is done, but when i deploy application on tomcat and hit the

7条回答
  •  孤街浪徒
    2020-12-02 19:13

    With Spring OAuth 2.0.7-RELEASE the following command works for me

    curl -v -u abc@gmail.com:12345678 -d "grant_type=client_credentials" http://localhost:9999/uaa/oauth/token
    

    It works with Chrome POSTMAN too, just make sure you client and secret in "Basic Auth" tab, set method to "POST" and add grant type in "form data" tab.

提交回复
热议问题