auth0-spring-security5-api-sample
auth0-spring-security5-api-sample copied to clipboard
Incomplete documentation?
Following this quickstart
https://auth0.com/docs/quickstart/backend/java-spring-security5/interactive
I am a bit confused as to how the JwtDecoder bean is used. Is this used in the background and just needs to be defined? As far as I can tell it's not actually used in the examples. I also looked at the other github examples but didn’t see it used.
Hey @mehiatt, the JwtDecoder bean is there to ensure the audience claim is validated. If you're using Spring Boot 3, this isn't necessary with the Spring changes discussed in #27, so should be safe to remove. We have work planned to update this sample and quickstart to Spring Boot 3. Thanks!