Spring OAuth2 - There is no client authentication. Try adding an appropriate authentication filter

后端 未结 5 1039
梦毁少年i
梦毁少年i 2020-12-30 04:55

We have an application which is using spring-security-oauth2:1.0. I was trying to change it to a newer version, spring-security-oauth2:2.0.7.RELEASE

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-30 05:50

    I had the same problem and my application.yml had this line:

    servlet:
        path: /auth
    

    so the token address was: /auth/oauth/token

    I remove the path from application.yml so the token path became:

    /oauth/token

    And everything works fine.

    I hope this help

提交回复
热议问题