How to change spring security oauth2 default token endpoint?

后端 未结 4 1970
被撕碎了的回忆
被撕碎了的回忆 2020-12-12 21:02

We have spring security oauth2 based application. Every thing is working fine. But i am failed to change default token endpoint from \"/oauth/token\" to \"/external/oauth/to

4条回答
  •  一生所求
    2020-12-12 21:49

    You are making this harder than what it should be, it's actually very simple ! (Notice I'm using "oauth2:" instead of "oauth:" as the XML tag)

    1. Go to your security-context.xml

    2. Find "oauth2:authorization-server" in the above file.

      
      
    3. Just add token-endpoint-url="/oauth/whatever_you_like"

      
      

提交回复
热议问题