JWT icon for multiple websites

How can I use one JWT token for multiple websites. I guess the first thing would be to have the same secret on all sites.

If a user logs on to site A and a token is generated, I want to use the same token for website B in a completely different domain.

Can this be done?

+4
source share
1 answer

What you want can be done, but not with a single JWT token . The JWT token is for a specific service or application specified by the audience ( aud). You cannot use the same token for another application or service.

, SSO , , (). , , .

, , cookie . , / . , JWT .

+6

Source: https://habr.com/ru/post/1628919/


All Articles