# Springboot SDK question

**URL:** <https://community.auth0.com/t/springboot-sdk-question/105666>\
**Category:** Get Help\
**Tags:** sdks-quickstarts, auth0-java\
**Created:** [April 27, 2023, 5:40pm UTC](https://community.auth0.com/t/springboot-sdk-question/105666 "2023-04-27T17:40:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![meaganh](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/meaganh/32/42375_2.png) [@meaganh](https://community.auth0.com/u/meaganh)\
**Post date:** [April 27, 2023, 5:40pm UTC](https://community.auth0.com/t/springboot-sdk-question/105666/1 "2023-04-27T17:40:28Z")

</div>

Following this quickstart

> **[Auth0 Spring Boot API SDK Quickstarts: Spring Boot API](https://auth0.com/docs/quickstart/backend/java-spring-security5/interactive)**
>
> Secure your API using Spring Security 5 and Auth0

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? I also looked at the other github examples but didn’t see it used.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [April 28, 2023, 6:08am UTC](https://community.auth0.com/t/springboot-sdk-question/105666/2 "2023-04-28T06:08:22Z")

</div>

Hey there!

In order to handle that most effectively, can I ask you to raise it as a GitHub issue so we can work on that directly with the sample maintainers and discuss it there?

> **[Issues · auth0-samples/auth0-spring-security5-api-sample](https://github.com/auth0-samples/auth0-spring-security5-api-sample/issues)**
>
> Sample demonstrating how to secure your API using Spring Boot 2 and Spring Security 5 - Issues · auth0-samples/auth0-spring-security5-api-sample

Once you do that please share a link to it here so we can ping them. Thank you!

---

<div class="post-metadata">

**Author:** ![meaganh](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/meaganh/32/42375_2.png) [@meaganh](https://community.auth0.com/u/meaganh)\
**Post date:** [April 28, 2023, 9:40pm UTC](https://community.auth0.com/t/springboot-sdk-question/105666/3 "2023-04-28T21:40:19Z")

</div>

I raised the issue on github.

> <https://github.com/auth0-samples/auth0-spring-security5-api-sample/issues/28>
>
> Following this quickstart
> 
> https://auth0.com/docs/quickstart/backend/java-spri…ng-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.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 5, 2023, 7:51am UTC](https://community.auth0.com/t/springboot-sdk-question/105666/4 "2023-05-05T07:51:09Z")

</div>

Perfect! Let me ping the repo maintainers in a few minutes!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 19, 2023, 7:51am UTC](https://community.auth0.com/t/springboot-sdk-question/105666/5 "2023-05-19T07:51:36Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 31, 2023, 2:43pm UTC](https://community.auth0.com/t/springboot-sdk-question/105666/6 "2023-05-31T14:43:59Z")

</div>



---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 31, 2023, 2:45pm UTC](https://community.auth0.com/t/springboot-sdk-question/105666/7 "2023-05-31T14:45:13Z")

</div>

Hey there!

Reopening this topic as I got some update regarding this.

A `@JwtDecoder` bean is not necessary until you add `oauth2Login()` with Spring Security however in general there might be some conversations in a bit about updating it for Spring Security 6 and Spring Boot 3 as it’s simply outdated.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [June 14, 2023, 2:46pm UTC](https://community.auth0.com/t/springboot-sdk-question/105666/8 "2023-06-14T14:46:03Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
