Open dhavalmshah opened 6 years ago
In the SecuredRestApplication.java file, you can see spring security chain configuration.
In this config you can see that both "/" and "/login" endpoints are behind AuthenticationWebFilter, which in this case has UserDetailsRepository inside containing single user, with password user.
After specifying those credentials in, for example curl request as -u parameter ( curl -u username:password -v http://example.com/login )
You should be able to see token coming back after succesful authentication.
Then to proceed with making request, copy this token into Authentication HTTP header, and use it for other endpoints, which will validate this token through JWTAuthorizationWebFilter.
@dhavalmshah hello, I also saw this example code and implemented jwt extract.
If you are having difficulty, do you check my example?
this code is jwt extract patial code example.
`
private final Mono
private Mono
Sorry I am new to this whole Spring Security scenario, and also to reactive programming. I am trying to run this application, and I am not sure how I can login to this application and generate the JWT Token for furthur requests to the resource server