I am having trouble getting to use the refresh token. Looking at the configuration of the endpoint: /oauth/token:
<intercept-url pattern="/oauth/token" access="IS_AUTHENTICATED_FULLY" />
it states that you have to be fully authenticated which makes sense. Alas, the second part which is refreshing your token uses the same endpoint (just state: grant_type=refresh_token).
BUT: you should not be authenticated to get a refresh token. So how is it possible to work around this?
Thanks!
Got some nice help from the spring team. I will “copy” their answer here.
The security protection on the /oauth/token is Oauth2 and not basic spring security. If you provide a client id and a client secret you can get through. So not basic!
Thanks spring!