Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a Resource Server when it comes to Microservices?

I am very confused about what is Resource Server in oAuth 😐.

Is Resource Server something like API Gateway? or is Resource Server a business type of Microservice like for example "search microservice", "shopping cart microservice"?

If I have Authorization Server, API Gateway, and 15 business type Microservices behind the API gateway, does it mean I have 15 Resource Servers?

like image 790
interested-dev Avatar asked Nov 15 '25 13:11

interested-dev


1 Answers

A resource server in OAuth2 terminology is the service where the client uses the access token to manipulate the user's data.

Whether you have 15 resource servers depend on who does the token validation. If you're API gateway is validating the access token before relaying the request, then you your API gateway would be the resource server. If every microservice validates its own token, then you would have 15 resource servers.

like image 91
MvdD Avatar answered Nov 17 '25 10:11

MvdD