mercredi 17 avril 2019

Laravel JWT cross-server authentication

I'm trying to implement cross-server jwt authentication in 2 my Laravel applications. They are authentication server and data server.

Functionality must be:

1.Client makes a request with credentials (login-pass e.g.) to my authentication server and get jwt token in the response.

2.Client makes a request with the token to the data server, the data server authenticate the user by token and returns a data in the response.

Is it possible to share one token between 2 servers, if the users tables both of servers are synchronized? Also JWT_SECRET both of applications is the same.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire