auth0-spring-security5-api-sample icon indicating copy to clipboard operation
auth0-spring-security5-api-sample copied to clipboard

Incomplete documentation?

Open mehiatt opened this issue 2 years ago • 1 comments

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.

mehiatt avatar Apr 28 '23 21:04 mehiatt

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!

jimmyjames avatar Jun 01 '23 01:06 jimmyjames