Wafo
Wafo

Reputation: 54

Spring boot OAuth2 - Insufficient Scope for this resource

I have an access token with the necessary scope. I also successful access the resource server. The error occur when the resource server try to fetch the user Principal from the Authorization server. I really hope i can get some hints or help about how i can solve this

The endpoint (localhost:9000/auth/user) get executed but i always get the following response to my curl request:

{"error":"insufficient_scope","error_description":"Insufficient scope for this resource","scope":"read"}

Upvotes: 1

Views: 3475

Answers (1)

Wafo
Wafo

Reputation: 54

I resolved this by removing the user info uri from the resource server properties. Since I use a jdbc token store, the resource server can verify the authenticity of the token from the database and not relying on the auth server anymore.

Upvotes: 1

Related Questions