-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Usage of deprecated function in JWT documentation #13446
Comments
Good catch, @sueszli! Can you provide a PR to the .oauth2ResourceServer((oauth2) -> oauth2.jwt(Customizer.withDefaults())) |
Will do immediately! |
@jzheaux thank you for allowing me to contribute to this project! |
If I want to set also a converter and I write:
I got this error: How can I fix it? |
Here is an example, hope it helps. |
Describe the bug
The Spring Security 6.1.1 documentation contains functions which are marked as deprecated by the RedHat VSCode extension.
Here is the warning that I am getting:
Here is the documentation:
see: https://docs.spring.io/spring-security/reference/servlet/oauth2/resource-server/jwt.html#:~:text=Exception%20%7B%0A%20%20%20%20http%0A%20%20%20%20%20%20%20%20.-,authorizeHttpRequests,-(authorize%20%2D%3E%20authorize%0A%20%20%20%20%20%20%20%20%20%20%20%20.anyRequest
see: https://github.com/spring-projects/spring-security/blob/6.1.1/docs/modules/ROOT/pages/servlet/oauth2/resource-server/jwt.adoc?plain=1#L176
To Reproduce
Expected behavior
I expected the documentation not to contain deprecated code snippets.
The text was updated successfully, but these errors were encountered: