# Multiple authorization servers

**URL:** <https://devforum.okta.com/t/multiple-authorization-servers/32911>\
**Category:** Architecture\
**Created:** [April 14, 2025, 7:23pm UTC](https://devforum.okta.com/t/multiple-authorization-servers/32911 "2025-04-14T19:23:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cerasela](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@cerasela](https://devforum.okta.com/u/cerasela)\
**Post date:** [April 14, 2025, 7:23pm UTC](https://devforum.okta.com/t/multiple-authorization-servers/32911/1 "2025-04-14T19:23:03Z")

</div>

I have a client web application (java) that uses a middleware to authenticate users against Okta default server.

After authentication, the middleware will return back to the client app, an identity and an access token minted by the Okta default server.

My client application needs to call a REST API that is protected by an Okta Custom authorization server.

Is there a way to retrieve an access token from the Custom authorization server, using the tokens from the default server (token exchange)?

From a client application, what is the best way to manage tokens from multiple Okta Custom Authorization servers?

---

<div class="post-metadata">

**Author:** ![sigama](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/sigama/32/5811_2.png) [@sigama](https://devforum.okta.com/u/sigama)\
**Post date:** [April 15, 2025, 2:38am UTC](https://devforum.okta.com/t/multiple-authorization-servers/32911/2 "2025-04-15T02:38:53Z")

</div>

Hi @cerasela, do you know if the middleware stores the tokens after successful login?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [May 15, 2025, 2:39am UTC](https://devforum.okta.com/t/multiple-authorization-servers/32911/3 "2025-05-15T02:39:06Z")

</div>

Closed on May 15, 2025, 2:39am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
