
SergeyS.24887 (Customer) asked a question.
Hi, i'm totally lost in SpringBoot + okta starter guide.
- I have spring boot app 2.3.0. Let's call it server-java-app
- I have okta web application
- I manually created okta user
User credentials are in another app. Let's call it my-client-java-app
my-client-java-app should
- user login and password to get sessionToken.
- get JWT token from session token somehow
- make request to server-java-app endpoint
- server-java-app should scrap username and group from JWT token
- do something
I was able to
- put authorization on secure endpoint
- non authorized call gets 302 response instead of 403. Have no idea why
- my-client-java-app can get sessionToken from okta using AuthenticationClient. I have no idea how to get AccessToken / JWT token from it...

Hi Ivan,
This is Andrei, with the Okta Support team. Please find the following documentation that might help with your issue.
https://developer.okta.com/docs/guides/sign-into-web-app/springboot/before-you-begin/
https://developer.okta.com/docs/guides/build-self-signed-jwt/java/overview/
If you need any additional help on the matter, please post your question on our Developer forum https://devforum.okta.com or reach out to our Developer support at developers@okta.com.
Thank You,
Andrei Vincze
Technical Support Engineer
Okta Global Customer Care