Closed EE1234EE closed 2 weeks ago
Hi @EE1234EE ,
I think you mean
@RestController
@RequestMapping("/test")
public class TestController {
....
}
Please see @RestController
and @RequestMapping
I'm sorry, can be closed because of stupidity ..
Describe the bug I downloaded this repo and started demo-authorizationserver, client and resource-server. Everything fine so far. After that I added a RestController, changed the DefaultSecurityConfg accordingly and no matter what I'm doing. I'm redirected to /login page. No matter what client.
To Reproduce
Changed DefaultSecurityConfig -> defaultSecurityFilterChain:
Expected behavior Reaching RestController
I started a custom spring auth-server and tried with a confidential client to reach custom controllers on spring auth server. No chance. I get the token with client_credentials, and after that my post/get whatever request with that token to the RestController I get as response 403 forbidden or the LoginPage.
I'm really willing to help but I do not even know where to start here a bit guidance would be awesome.
Sample Given Sample with mentioned modifications.
I would use it for user registration for example.