Skip to content

How to mock keycloak login? #1731

Answered by kettanaito
etosdan asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, @etosdan.

MSW is designed to intercept HTTP requests. If you use the REST API for Keycloak, you will be able to intercept any HTTP requests your application makes and mock their responses to be what Keycloak would send in case of a successful/unsuccessful authorization. Look up how to use that service via a REST API, and then follow the Mocking REST API step of our tutorial to translate that API into request handlers.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kettanaito
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants