Article

What moves in an OIDC migration.

The client id and the secret are the easy part to list. The time goes on flows, audiences, consent and the change the application owner has to make.

2026-11-19 · TenantFlex

An OpenID Connect application looks like the easier half of a migration. There is no signing certificate to hand over and fewer fields to copy: a client id, a secret, some redirect URIs. But more of an OIDC integration lives in the application's own code, which means more of what changes lands on the application owner's desk. This is the companion to what actually moves in a SAML migration: a list of what moves when an OIDC application changes identity provider, and where each piece goes wrong.

1. The client id

The destination issues its own. Entra ID gives every registration a new application (client) id that you cannot choose, and a client created on Okta gets a client_id that Okta generates. Every place the application stores its client id has to change, and so does anything that checks it. An ID token's aud claim must contain the client id of the application it was issued to, so an application that validates its ID tokens properly will reject the destination's tokens until it knows the new value. The issuer changes too, and with it the discovery document the application reads its endpoints and keys from.

2. The client secret

A secret is never copied. Entra shows a client secret's value once, when it is created, and never again; Graph generates the value itself. Even where a provider will show you the source secret, it belongs to the source client, and reusing it would tie the new client's credential to the old one's rotation and exposure. The destination issues a new secret, and the application owner has to put it in their application's configuration. Like the certificate in a SAML migration, this is the change the owner cannot avoid.

Two details matter for planning. A secret has an expiry, and on Entra it is at most 24 months, so the migration starts a clock someone has to watch. And single-page and native applications are public clients with no secret at all, which makes them simpler here and harder in section 4.

3. Redirect URIs

The redirect URI in a sign-in request must match one registered on the client exactly. On a normal host, a trailing slash, a different case in the path or a different port makes a different URI, and the sign-in fails with an error about the reply URL. Copying the list across is the easy part; the trouble is that each provider has its own registration rules. On Entra, for example:

  • Redirect URIs must use https, except for localhost, and are case-sensitive.
  • Each one is limited to 256 characters, and wildcards and query parameters are allowed only for some sign-in audiences.
  • A custom-scheme URI for a native app is written as scheme://path.
  • For single-tenant applications, identifier URIs (the App ID URI an API is known by) are checked against the domains verified in the tenant. In an acquisition, the acquired company's domain may not be verified in the destination yet, and Entra refuses the URI.

A URI the destination refuses or drops has to be reported, not lost. Post-logout redirect URIs have their own trap: Entra models a single logout URL, so an application with several post-logout URIs on Okta keeps only one.

4. Grant types, response types and PKCE

These say how the application is allowed to get tokens: the authorization code flow, refresh tokens, client credentials, and the older implicit and hybrid flows in which the authorization endpoint itself returns an ID token or access token. Okta keeps them on the client as grant_types and response_types. Entra splits them between the platform you register the redirect URI under (web, single-page, mobile and desktop) and the implicit grant settings, which Graph keeps on the web platform. TenantFlex registers a single-page or native app on Entra under its own platform, so it cannot carry the implicit flow for one, and says so rather than dropping it silently. For a single-page app the better answer is usually the authorization code flow with PKCE, which Microsoft recommends anyway.

PKCE needs the same attention. Entra requires it for single-page apps that use the authorization code flow and recommends it for every client. Okta makes it optional for a web app through a "Require PKCE" setting on the client. If the destination requires PKCE and the application does not send a code challenge, sign-in fails. If the source required it and the destination does not, nothing breaks, but you have quietly lost a protection.

5. Audience

The word covers two different settings, and both move:

  • Token audience. Who a token is for. ID tokens carry the client id, so they change with section 1. Access tokens for your own APIs carry the API's identifier as Entra or the Okta authorization server defines it, and an API that checks the audience of incoming tokens has to accept the new one.
  • Sign-in audience. Who may sign in at all. Entra states it on the registration, for example accounts in this organization only, any organization, or personal Microsoft accounts as well. Okta has no equivalent; who can sign in is decided by assigning users and groups.

6. Claims and scopes

The standard OIDC claims, such as name, email and the subject, map on their own. Custom claims are where the providers diverge. Entra writes them on the application, as optional claims or a claims-mapping policy. Okta has no custom claims on an OIDC application: they are defined on the authorization server that issues its tokens, and apply to every application that server serves. Moving to Okta, a custom claim therefore becomes a decision about the authorization server, not a field on the app. Claims built from expressions have to be re-expressed in the destination's language, which our claims translator shows with examples.

Scopes and roles follow the same pattern. On Okta, scopes live on the authorization server. On Entra, an API exposes its own scopes and app roles, and recreated app roles get new ids, so anything that refers to a role by id has to be repointed.

7. API permissions and consent

An Entra application lists the API permissions it asks for. Carrying that list across is easy; granting it is a decision for an administrator of the destination tenant, and it should stay one. TenantFlex never grants permissions itself, and it does not ask for the Graph permissions that would let it, because those permissions let an application give itself any privilege.

What it does instead, for an Entra destination, is produce one admin-consent link for each migrated application. An administrator opens it under their own role and grants every requested permission in one step. Microsoft's roles decide who can: a Privileged Role Administrator can grant any permission, while a Cloud Application Administrator or Application Administrator can grant anything except Microsoft Graph application permissions.

Before the plan is recorded, TenantFlex checks each API the application names against the destination tenant. An API that exists there is kept. An API migrated in the same job is followed to its new id. An API that exists nowhere in the destination is left out of the new application's requested permissions and listed under "Could not be carried", because a single permission the destination cannot resolve would make the consent page fail for the whole application. Okta has no direct equivalent of Entra's API permissions; scopes are configured on the destination's authorization server instead.

8. The change on the application's side

None of the above signs anyone in. Until the application owner changes the issuer, the client id and the secret in their own configuration, and their API accepts the new audience, users keep going through the source. As with SAML, this is the step that sets the elapsed time, because it happens in each owner's change window. TenantFlex hands each owner a bundle with the issuer, the client id, the new secret (released only when the hand-off is sent with access to it) and the exact redirect URIs to register, so the owner's job is a copy rather than a ticket back to the identity team.

How the parity check compares them

After a migration, TenantFlex reads the destination application back and compares it with the source. For OIDC that means the redirect URIs, with the custom-scheme forms treated as equal; the post-logout URIs where both sides list some; the implicit and hybrid flow tokens where both sides state their response types; the PKCE requirement where both sides state one; and the sign-in audience where the source states one. The client secret is never compared, because it is issued on the destination by design.

A setting the destination provider cannot carry, such as the implicit flow on an Entra single-page app or a sign-in audience on Okta, is listed with the reason and left unscored. That keeps two different problems apart: a migration that went wrong, which a retry can fix, and a provider that cannot express the setting, which needs a decision.

What this means for planning

Creating the client in the destination takes minutes. The elapsed time is set by items 2, 7 and 8: a new secret each owner has to install, consent an administrator has to grant, and owners who need a change window. So find out early which applications use flows or permissions the destination cannot carry, book the administrator who grants consent alongside each wave, and rehearse the owner hand-off on a pilot wave before the rest.

TenantFlex Get started

Talk to us about your tenants.

Tell us which providers you run and what is coming up. We will show you what discovery finds, read-only.

[email protected] · www.tenantflex.com
Tell us about your migrationWe reply within one business day.

Goes straight to [email protected]. If the form can't reach us, it opens your email app with the request prefilled instead.

Click image to zoom · ← → to browse · Esc to close