Is it possible to get an access_token from Spring OAuth2 server without client secret?

后端 未结 4 1090
不思量自难忘°
不思量自难忘° 2020-12-16 06:57

I am using Spring Security\'s OAuth2 server implementation. I am trying to get the access_token from the servers\' /oauth/token endpoint using the OAuth2 \"Pass

4条回答
  •  不思量自难忘°
    2020-12-16 07:05

    According to the specification (RFC 6749), if the client type of your application is public, a client secret is not required. On the contrary, if the client type is confidential, a client secret is required.

    If Spring offers an API to set the client type, try to set the client type to public.

提交回复
热议问题