TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How do you handle authentication and authorization between microservices

43 pointsby somtumabout 7 years ago

12 comments

exabrialabout 7 years ago
Take a look at the Microprofile JWT specifications. It provides a standard set of jwt claims: <a href="https:&#x2F;&#x2F;www.eclipse.org&#x2F;community&#x2F;eclipse_newsletter&#x2F;2017&#x2F;september&#x2F;article2.php" rel="nofollow">https:&#x2F;&#x2F;www.eclipse.org&#x2F;community&#x2F;eclipse_newsletter&#x2F;2017&#x2F;se...</a>
jwhitlarkabout 7 years ago
<a href="https:&#x2F;&#x2F;istio.io" rel="nofollow">https:&#x2F;&#x2F;istio.io</a>
codegladiatorabout 7 years ago
A central server which maintain all authorization information. The client can request token to access a particular service. The service verifies the token by calling the central server and gets in response the permissions available for that token. Also, a TTLed cache on the servers.
评论 #16717746 未加载
nickservabout 7 years ago
System user permissions with public&#x2F;private keys for lower level APIs (SSH tunnels, basically).<p>Centralized token services for ReST APIs
exabrialabout 7 years ago
I used to work for a company that has a solution for this exact problem: <a href="http:&#x2F;&#x2F;www.tribestream.io" rel="nofollow">http:&#x2F;&#x2F;www.tribestream.io</a> Great product and the people couldn&#x27;t be a more diverse and all around good group of people.
评论 #16715027 未加载
Rjevskiabout 7 years ago
Client certs for service to service communication.<p>Auth tokens validated by a central entity (a bunch of servers really) for user (mobile apps, etc) to service communication.
borncrusaderabout 7 years ago
JWTs are a good approach. I&#x27;ve also seen folks using mTLS with gRPC.
carlosdpabout 7 years ago
JWT tokens are a decent approach
toomuchtodoabout 7 years ago
Vaulted API keys with lifecycle management.
steve_taylorabout 7 years ago
Docker secrets.
matchmike1313about 7 years ago
API keys typically
segmondyabout 7 years ago
keycloak