Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JwtTokenAuthenticationFilter invoked for every uri even though permitAll #57

Closed
upen4a3 opened this issue Nov 13, 2020 · 4 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@upen4a3
Copy link

upen4a3 commented Nov 13, 2020

Hi hansty,

Thanks for the great example.I am facing an issue where Filter is called for every URI even for /actuator/health.Is that expected behavior ?How can we exclude /actuator/**?

@upen4a3 upen4a3 added the bug Something isn't working label Nov 13, 2020
@github-actions
Copy link

Good job. Thanks for opening your first issue.

@hantsy
Copy link
Owner

hantsy commented Nov 13, 2020

Exclude the uri in the Spring Security config, please.

Add your path to this line, https://github.com/hantsy/spring-reactive-jwt-sample/blob/master/src/main/java/com/example/demo/config/SecurityConfig.java#L37

@hantsy hantsy closed this as completed Nov 13, 2020
@upen4a3
Copy link
Author

upen4a3 commented Nov 13, 2020

I don't think that works.i added /actuator/** to that line https://github.com/hantsy/spring-reactive-jwt-sample/blob/master/src/main/java/com/example/demo/config/SecurityConfig.java#L37 ,but the filter is still invoked.

like this .pathMatchers(HttpMethod.GET, "/actuator/**").permitAll().I don't want filter to be called if req is coming from particular url.

@hantsy
Copy link
Owner

hantsy commented Nov 14, 2020

File an issue on spring boot. It is out of the scope of this sample.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants