security - JWT token SSO flow -


i have simple question sso flow jwt

let's have separate authorization server, provides jwt client app/server , resource server, client trying access token.

enter image description here

the question is, should resource server validate token (e.g. share private certificate auth server) or should request auth server validate jwt each client request?

the jwt specification built scalability in mind. purpose of jwt's design trusted app can validate signature block. if care performance use sha-256 hmac , validate signature locally on each endpoint shared secret. using asymmetric signature jwt creates overhead, can store public key on endpoints verify not issue jwt, , private key on central authority issues tokens. separation of concern between validation , issuing reduces possibilities token creation process can subverted adversary (read: defense-in-depth).

if need revoke tokens in real time, need central authority validates each token. works, defeats purpose of jwt's design, , system better off issuing cryptogrpahic nonce token.


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -