I created a project as an Authorization Server using spring-security-oauth2. and create other project as an Resource Server using spring-security-oauth2-resource-server.
some config of Resource Server is that:
login Authorization Server, get the token. e.g. IxPuO7hA9jVMWF08UI6HmDkizME=
access resource server api, but i always get the exception.
org.springframework.security.authentication.AuthenticationServiceException: 400 : [{"error":"invalid_token","error_description":"Token was not recognised"}]
The real token is IxPuO7hA9jVMWF08UI6HmDkizME=, but this code return IxPuO7hA9jVMWF08UI6HmDkizME.(‘=’ at the end is gone)
Caused /oauth/check_token always return invalid_token error.
-- Question
Is there a problem with the way I use it? or other? thx
I created a project as an Authorization Server using spring-security-oauth2. and create other project as an Resource Server using spring-security-oauth2-resource-server. some config of Resource Server is that:
my operation:
IxPuO7hA9jVMWF08UI6HmDkizME=
org.springframework.security.authentication.AuthenticationServiceException: 400 : [{"error":"invalid_token","error_description":"Token was not recognised"}]
-- Debug i found this call chain.
The real token is
IxPuO7hA9jVMWF08UI6HmDkizME=
, but this code returnIxPuO7hA9jVMWF08UI6HmDkizME
.(‘=’ at the end is gone) Caused/oauth/check_token
always return invalid_token error.-- Question Is there a problem with the way I use it? or other? thx
dependency: