You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to implement an integration test as follow
WebTestClient must get JWT token from resource server and attach the token when calling Rest API of the Spring Boot Application. Spring Boot Application verifies the received JWT token via the resource server. I don't want to change any security configuration of the Spring Boot Application. The only change I want is to point to a mock resource server.
I am using MockServer for the blue block ${\color{#1971c2}1st Embedded Mock Server - HTTP REST API}$. Everything works fine.
Now, I would like to start another MockServer instance for the red block ${\color{#e03131}2nd Embedded Mock Server - OAuth2/OpenID Connect - Resource Server}$.
I ask my question here because
I would like to implement an integration test as follow
WebTestClient must get JWT token from resource server and attach the token when calling Rest API of the Spring Boot Application. Spring Boot Application verifies the received JWT token via the resource server. I don't want to change any security configuration of the Spring Boot Application. The only change I want is to point to a mock resource server.
I am using MockServer for the blue block${\color{#1971c2}1st Embedded Mock Server - HTTP REST API}$ . Everything works fine.
Now, I would like to start another MockServer instance for the red block${\color{#e03131}2nd Embedded Mock Server - OAuth2/OpenID Connect - Resource Server}$ .
I found https://github.com/navikt/mock-oauth2-server, but it doesn't use MockServer behind.
Is there a way to use MockServer for the same purpose?
The text was updated successfully, but these errors were encountered: