I'm trying to understand JWT-based authorization between applications

27 views Asked by At

I'm trying to understand JWT-based authorization between applications, and it's a bit unclear to me. I have 2 applications: app1 is responsible for user authorization. Upon logging into app1, I receive a JWT token. When I want to retrieve resources from app2, for example, /api/get-data, I send the token in the header. App2 checks the validity of the format (header, payload, and signature), as well as its expiration date. If everything is okay, it sends a request to app1/api/token/verificate to verify the token. Upon receiving confirmation that the token exists, I receive resources from /api/get-data. Do I understand this correctly? Did I miss anything? Is signature verification of the token still needed here?

0

There are 0 answers