java - spring security oauth2 (2.0.8) getting Invalid access token used InMemory tokenstore -
trying implement spring security oauth2 in application. i able access token , refresh token using : http://localhost:8080/xapp/oauth/token?username=user1&password=password&grant_type=password&client_id=xapp&client_secret=xapp { "access_token": "798c7e71-983b-4137-a0cb-ceae4e9b4190" "token_type": "bearer" "refresh_token": "0752b8ff-5086-4457-918d-54376c7a2bec" "expires_in": 299 "scope": "read trust write" } when i'm trying access protected resource using below url http://localhost:8080/xapp/data/product/api/index/?access_token=798c7e71-983b-4137-a0cb-ceae4e9b4190 i getting: { "error": "invalid_token" "error_description": "invalid access token: db48214c-04d7-4d6b-aa34-6d16c9c2a438" } applicationcontext-security.xml : <?xml version="1.0" encoding="utf-8"?> ...