I have a SpringBoot-Application that is accessed with REST-Endpoints. I also wrote a SystemTest for that, i install the Application and fire some REST requests against the System. So fare, so good. Now i have to enable Security... I implemented in the application the spring resource server with jwt.
.oauth2ResourceServer() .jwt(); This also works fine. Now i have to fix my SystemTest. I need a setup a authorization server that i can manipulate. Something simple. As the Spring Guys have noting ready that the moment @EnableResourceServer @EnableAuthorizationServer are deprecated? I have seen this https://www.baeldung.com/spring-security-oauth-resource-server
Do you know a simple solution for that or can give me an example?
Thanks T
Here psydo Code how it should work:
... authorizationServer.start() String jwt = authorizationServer.getValidJwt() ... // in the Test request.get("url...").withHeader(jwt)... https://stackoverflow.com/questions/66765706/oauth2-authorization-server-for-testing March 23, 2021 at 10:56PM
没有评论:
发表评论