<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D51Y00009L7i8aSABOkta Classic EngineIntegrationsAnswered2020-12-24T08:58:00.000Z2020-08-29T11:45:35.000Z2020-09-05T13:43:47.000Z

SergeyS.24887 (Customer) asked a question.

How to enable JWT authorization in SpringBoot

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...

 

 

 

 


This question is closed.
Loading
How to enable JWT authorization in SpringBoot