Interceptor for Auth
Microservices that allow users to register services, lookup services, and create orders must integrate with the Auth service to make sure that the requests received by the service are genuine and the sender is authorized to perform the requested task. Instead of embedding Auth logic in all the microservices, it is recommended to separate it out as a microservice with which all other services can interact via direct messaging to authenticate the sender of the request.
The interaction with the Auth service can be embedded within a Pedestal interceptor that frontends the interceptor chain for all the secured APIs. This interceptor should capture the authentication and authorization details in the request and send them to ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access