How to integrate OKTA with Spring Rest Security (OAuth)

Hey guy’s

I’m completly lost and very annoyed about this Java / Spring Security Oauth Topic.

I just wan’t to add OAuth to my Spring Rest API to send credentials from my React JS App to the server to get an Access Token which could be used to access the API. It sound simple but hard to achieve as I realized. Is there a good tutorial about this?

Just found tutorials with Thymeleaf oder outdated Spring Libraries.

1 Like

Hi @thmspl,

Have you tried running the spring resource server sample app?
This might be similar to what you’re trying to achieve.
The app has endpoints protected by oauth, which can be accessed by any front-end using an access token.

Hope this helps.