# OAuth\_For\_Okta feature for Java/Spring

**URL:** <https://devforum.okta.com/t/oauth-for-okta-feature-for-java-spring/6967>\
**Category:** Questions\
**Created:** [November 19, 2019, 4:36pm UTC](https://devforum.okta.com/t/oauth-for-okta-feature-for-java-spring/6967 "2019-11-19T16:36:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MDD](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@MDD](https://devforum.okta.com/u/MDD)\
**Post date:** [November 19, 2019, 4:36pm UTC](https://devforum.okta.com/t/oauth-for-okta-feature-for-java-spring/6967/1 "2019-11-19T16:36:28Z")

</div>

Hi,

I am exploring OAuth\_for\_Okta feature and able to setup a NodeJS application by referring to the link [https://github.com/andymarch/OAuth-For-Okta-APIs](https://github.com/andymarch/OAuth-For-Okta-APIs)

Now I am trying to setup something similar for a Java/Spring based application.May I know what would be the equivalent functionality in Java/Spring for the below NodeJS functionality

const tokenSet = req.userContext.tokens;

Thanks

---

<div class="post-metadata">

**Author:** ![mraible](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/mraible/32/37_2.png) [@mraible](https://devforum.okta.com/u/mraible)\
**Post date:** [November 19, 2019, 4:58pm UTC](https://devforum.okta.com/t/oauth-for-okta-feature-for-java-spring/6967/2 "2019-11-19T16:58:26Z")

</div>

What exactly are you trying to do with Java and Spring? We have an [Okta Spring Boot starter](https://github.com/okta/okta-spring-boot) that makes it easy to integrate Okta with Spring.

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [January 18, 2024, 12:30am UTC](https://devforum.okta.com/t/oauth-for-okta-feature-for-java-spring/6967/3 "2024-01-18T00:30:33Z")

</div>

Closed on January 18, 2024, 12:30am UTC


