<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
0D51Y0000ALnD5lSQFOkta Identity EngineAPI Access ManagementAnswered2021-01-26T01:29:59.000Z2021-01-22T00:20:06.000Z2021-01-26T01:29:59.000Z

ethans.00380 (Customer) asked a question.

Spring and okta via a proxy

We have a spring boot java application, and would like to use okta, but to have it communicate via a proxy instead of numerous machines. If I could draw up the steps, it would happen in 1 of the following two ways:

You have a user machine on localhost:8080, and a gateway (maybe auth server?) running on localhost:9090.

A)

We need:

1) user routes to localhost:8080/greetings (or any route. we need to cover everything)

2) redirected to gateway on 9090

3) gateway redirects to okta sign on page

4) user signs in, redirects back to gateway on 9090

5) relays tokens to user on localhost:8080.

B)

We need:

1) user routes to localhost:8080/greetings (or any route. we need to cover everything)

2) redirected to okta

3) user signs in, redirects back to gateway on 9090

4) 9090 relays tokens to user on localhost:8080.

 

Any suggestions?


  • ethans.00380 (Customer)

    I'm sorry this needs for details that I forgot. We are trying to implement a sign on application. each user goes through a single okta sign on application

  • Hi Ethan,

     

    The easiest solution would be to implement API authentication, which can be passed via the gateway to receive a sessionToken from Okta. With this sessionToken, you can pass a separate call to Okta following the examples provided here to retrieve JWTs that can be used in the application.

     

    Dragos Gaftoneanu

    Developer Support Engineer

    Okta Global Customer Care

    Expand Post
This question is closed.
Loading
Spring and okta via a proxy