In a distributed authentication model, what is the primary purpose of using tokens such as JWT?
easy📝 Conceptual Q2 of 15
Microservices - Authentication and Authorization
In a distributed authentication model, what is the primary purpose of using tokens such as JWT?
ATo prevent any token expiration issues
BTo store user passwords securely across services
CTo centralize session management in one service
DTo enable stateless verification of user identity by microservices
Step-by-Step Solution
Solution:
Step 1: Understand distributed auth tokens
Tokens like JWT carry user identity and claims, allowing services to verify without contacting a central server.
Step 2: Analyze options
B is incorrect because tokens do not store passwords; C is false as distributed auth avoids central session management; D is wrong since tokens can expire.
Final Answer:
To enable stateless verification of user identity by microservices -> Option D