
ethans.00380 (Customer) asked a question.
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?

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 @ethans.00380 (Customer) ,
I've escalated your question to our Customer Support team. They will respond to you shortly here.
Thanks!
Tim
Okta, Inc.
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