I have my OAUTH2 server, which other services need to request a jwt token to be able to access the endpoints.
So far so good, everything is going well.
But now I'm writing the tests, and they all return error 401 without authorization. I already understood that it is because the tests do not make any requests for the OAuth2 server.
What I wanted to know is how do I do a Mock from a JWT or from the oauth2 server.
Aucun commentaire:
Enregistrer un commentaire