On this page

Switch an app to the Identity Engine pipeline

Learn how to move an individual app to the Identity Engine authentication pipeline during an app-level upgrade and roll a single app back if it doesn't work.

Note: The tasks in this guide only apply to an app in an org that's eligible for app branding migration. See App branding migration (opens new window) to confirm that your org qualifies before you continue.


Learning outcomes

  • Understand what an authentication pipeline controls for an app.
  • Update integrations for the session changes that come with the upgrade.
  • Move an app to the Identity Engine pipeline.
  • Roll an app back to the Classic Engine pipeline.

What you need

  • An org that's upgraded to Identity Engine and is eligible for app branding migration
  • An access token with the okta.apps.read and okta.apps.manage scopes
  • The id of each app that you want to upgrade

Overview

Your org upgrades to Identity Engine as a whole. But app branding migration provides the ability for you to upgrade your apps individually. Okta keeps your existing apps and their branding on the Classic Engine pipeline, and you move them to the Identity Engine pipeline one app at a time, on your own schedule.

This means that you don't need to fix every customized app before you upgrade. Move your lowest-risk apps first, confirm that each one works, and roll a single app back to the Classic Engine pipeline if it doesn't. Apps that you create after the upgrade use the Identity Engine pipeline as the default. Okta first-party apps, such as the Admin Console, also use the Identity Engine pipeline.

An app on the Classic Engine pipeline can't use the Identity Engine capabilities that your org gained by upgrading, such as Okta FastPass, device assurance policies, and Identity Engine authentication policies. It also can't use self-service registration, which is a known limitation of the app-level upgrade.

This guide explains each part of an app-level upgrade first, then walks through the tasks in the order that you do them.

Quick reference

Use the following table to see what an app-level upgrade changes and what you need to do about it.

Area What changes Action required Learn more
Authentication pipeline Before the upgrade, every app used your org's Classic Engine. Afterward, each app has its own pipeline. Your existing apps stay on the Classic Engine pipeline, and apps that you create use Identity Engine. Set authenticationPipeline to ORG_DEFAULT on each app that you want to move. Authentication pipeline setting
Sessions On Classic Engine, Okta identifies a user's session with the sid cookie. After the upgrade, Okta uses the idx cookie and converts each existing Classic Engine session, which destroys the session that the sid identifies. Replace any code that reads a session by its sid value. Session handling changes
App sign-in policies An app on the Classic Engine pipeline keeps evaluating its Classic Engine sign-on policy. When you upgrade an app's pipeline, Okta creates a copy of its app sign-on policy as an Identity Engine app sign-in policy and maps the app to it. The app ends up with a policy for each pipeline, but only evaluates the one that matches its current pipeline. Review the policy that Okta creates and confirm that it aligns with your original policy. App sign-in policies on both pipelines
Self-service registration Doesn't work for an app on the Classic Engine pipeline. Account recovery still works. Move the app to the Identity Engine pipeline if it needs self-service registration. Known limitations

Key concepts for an app-level pipeline upgrade

See the following sections to understand the concepts that affect your apps during an app-level upgrade.

Authentication pipeline setting

An authentication pipeline determines how an app's sign-in flow works. The pipeline consists of the policies that Okta evaluates, which authenticators are available, which sign-in experiences your apps support, and how registration and account recovery work. Classic Engine and Identity Engine each have their own pipeline. During an app-level upgrade, you set the pipeline for each app individually.

The authenticationPipeline property on an app controls which pipeline that an app uses. It accepts two values: ORG_DEFAULT and CLASSIC. Okta only exposes the authenticationPipeline property after your org has upgraded to Identity Engine. On an org that's still on Classic Engine, no app has a pipeline setting yet, so you can't move individual apps to the Identity Engine pipeline ahead of your org-wide upgrade.

Value Description
ORG_DEFAULT The app follows your org's engine. On an org that has upgraded to Identity Engine, this is the Identity Engine pipeline.
CLASSIC The app uses the Classic Engine pipeline, regardless of your org's engine.

There's no IDENTITY_ENGINE value. An app-level upgrade happens on an org that has already moved to Identity Engine, so ORG_DEFAULT resolves to the Identity Engine pipeline there. ORG_DEFAULT is the value that you set to move an app off Classic Engine, and it's what apps use unless you pin them to CLASSIC.

There are two restrictions that apply when you switch an app's pipeline:

  • When you create an app, Okta sets it to use the Identity Engine pipeline by default. You can't set CLASSIC when you create an app. But you can switch an existing app to CLASSIC afterward with a PUT request, regardless of whether that app ever ran on the Classic Engine pipeline before.
  • Some apps always use the Identity Engine pipeline. For those apps, if you try to set CLASSIC as the pipeline, the request fails with a 400 error. This applies to Okta first-party apps, such as the Admin Console and the Okta Browser Plugin, and to apps that already evaluate a Classic Engine sign-on policy on an Identity Engine org, such as multifactor-only and RADIUS apps.

App sign-in policies on both pipelines

An app on the Classic Engine pipeline evaluates its Classic Engine sign-on policy. When you move the app to the Identity Engine pipeline, Okta creates an Identity Engine app sign-in policy from that sign-on policy and maps the app to it. The Classic Engine policy stays in place, so the app has a policy for each pipeline, but it only evaluates one of them at a time.

The policy that matches its current authenticationPipeline value is the one that's evaluated.

The two policies are close equivalents. Okta carries over the parts that map directly, such as the rule action, the factor requirements, and the password and multifactor reauthentication intervals. The engines don't model policies identically, so treat the new policy as a starting point and review it carefully. See App sign-in policies for how Identity Engine models them, and Configure a global session policy and app sign-in policies to review or change one.

Keeping both policies is what makes an app-level rollback straightforward. If you move an app back to the Classic Engine pipeline, its original Classic Engine sign-on policy is still there to take over.

Session handling changes

When you upgrade an app to use the Identity Engine pipeline, the way that Okta tracks a user's session changes. Classic Engine identifies a user's session with the sid cookie, and Identity Engine uses the idx cookie. The two engines also differ in what the Sessions API returns, which session endpoints they support, and how session tokens behave. For the full set of differences, see Understand how sessions work after the upgrade and Okta API changes for Identity Engine.

The differences between how sessions are handled between the two pipelines affect how your org runs both pipelines at the same time. A user might sign in to an app on the Classic Engine pipeline and then open an app on the Identity Engine pipeline. Session transition is the mechanism that resolves this. It converts a Classic Engine session into an Identity Engine session, so that one sign-in covers apps on both pipelines. It also means that users who signed in before your upgrade stay signed in afterward.

Replace code that reads a session by ID

This section applies if you have integrations that validate, revoke, or refresh a user's session on your server by using a session ID.

There's no supported way to obtain a session ID after you upgrade to Identity Engine. On Classic Engine, the sid cookie's value works as a session ID with GET /api/v1/sessions/{sessionId}. However, that pattern doesn't work after a session converts to Identity Engine. The cookie can still be in the browser, but the session it identifies is gone.

Replace any of your code that uses a session ID with one of the following solutions, depending on what your integration needs:

What your integration needs What to use
Your integration needs to identify the current user. Use the ID token or access token from an OIDC sign-in flow, or the assertion for a SAML or WS-Federation app. Validate the ID token or access token on your server.
Your integration needs to revoke a user's session. Use Revoke all user sessions (opens new window) with the user ID instead of session ID.
Your integration needs to keep a user signed in longer. Use the OAuth 2.0 refresh token grant instead of refreshing the session.

Audit your server-side code for anywhere that passes a cookie value as a session ID, or that calls POST /api/v1/sessions to create one. For each call site that you find, determine what it actually needs, and replace it with the matching option from the previous table before you upgrade the app.

If your org rolls back to Classic Engine after sessions have converted, your users have to sign in again. That's because Okta destroyed their original Classic Engine sessions. See the Sessions API (opens new window).

Before you switch

Complete the following actions before you move an app to the Identity Engine pipeline:

  • Find out what your app depends on in Classic Engine. See Audit your Classic API dependencies to inventory the endpoints, SDKs, and widget versions that this app relies on. That audit is organized app by app, which matches how you migrate.
  • Confirm that your app's Sign-In Widget meets the version requirement. Identity Engine requires Sign-In Widget version 5.11 or later, or the third generation Sign-In Widget for the Okta-hosted experience. See Choose an Identity Engine sign-in deployment model.
  • Check the app's session handling against Session handling changes, especially any code that reads a session by ID.
  • Plan to review the app's app sign-in policy afterward. See App sign-in policies on both pipelines.
  • Plan the order in which you move apps. Start with the apps that have the fewest Classic Engine dependencies and the smallest user population, so that you build confidence before you move business-critical apps.

Switch an app's pipeline

To move an app to the Identity Engine pipeline, set authenticationPipeline to ORG_DEFAULT on the app.

PUT /api/v1/apps/{appId} replaces the app object, so retrieve the app first and send the complete object back with the one property changed. If you omit authenticationPipeline from an update, the app keeps its current pipeline.

  1. Use List all applications (opens new window) to find the id of the app that you want to move.

  2. Change authenticationPipeline to ORG_DEFAULT, and then send the complete object back.

    curl -X PUT "https://${yourOktaDomain}/api/v1/apps/${appId}" \
      -H "Accept: application/json" \
      -H "Content-Type: application/json" \
      -H "Authorization: Bearer ${accessToken}" \
      -d '{
      "id": "0oa6hm3ycieuUv2iI0h7",
      "label": "Example app",
      "signOnMode": "OPENID_CONNECT",
      "authenticationPipeline": "ORG_DEFAULT"
      {...}
    }'
    
  3. Retrieve the app again to confirm that authenticationPipeline changed, and then review the app sign-in policy that Okta created.

When you update the pipeline successfully, Okta makes the following changes:

  • Okta creates an Identity Engine app sign-in policy from the app's Classic Engine app sign-on policy, and maps the app to it.
  • Okta adds the app to your default user profile policy, so that self-service registration works for it again.
  • Okta records the change in the System Log, including the previous and the new pipeline.

If any part of this process fails, the whole switch fails and the app stays on its current pipeline. You never get an app that's half-moved, so it's safe to retry.

For the rest of the app object and its other properties, see the Applications API (opens new window).

Roll back a pipeline switch

If an app doesn't work on the Identity Engine pipeline, move it back by setting authenticationPipeline to CLASSIC.

A rollback restores the app's Classic Engine sign-on policy as it was immediately before you moved the app. Be aware of what that means:

  • Changes that you made to the app's Identity Engine app sign-in policy are discarded. Okta doesn't merge them into the Classic Engine policy.
  • The app's own configuration doesn't change. Settings such as redirect URIs stay as you left them. Only the policy reverts.
  • Self-service registration doesn't work for the app again, because Okta removes a Classic Engine pipeline app from your user profile policy.

Note: If the app never had a Classic Engine sign-on policy, Okta creates one with a single Allow rule. That rule permits all access. Configure it to match your security requirements before you rely on it.

Rolling back a single app is separate from rolling your whole org back to Classic Engine. An org-level rollback is a request that you make to Okta rather than an API call, and it discards every per-app pipeline choice. See Plan your rollback strategy.

Known limitations

The following limitations apply for as long as an app stays on the Classic Engine pipeline. They resolve when you move the app.

  • Self-service registration doesn't work for an app on the Classic Engine pipeline. The Identity Engine registration flow isn't available to the app, and Okta turns off the Classic Engine registration feature when your org upgrades. Move the app to the Identity Engine pipeline to enable registration for it, which Identity Engine handles through a user profile policy. See Configure user profile policies (opens new window). Account recovery isn't affected and works for a Classic Engine pipeline app and uses the Classic Engine experience.
  • You can't map a Classic Engine pipeline app to an Identity Engine app sign-in policy. The app evaluates its Classic Engine sign-on policy, so the mapping has no effect and Okta rejects it.
  • Identity Engine settings that apply org-wide can still affect a Classic Engine pipeline app. An app-level upgrade covers the app's sign-on policy and its branding. It doesn't isolate the app from every other Identity Engine setting. This list covers the differences that Okta knows about, and isn't exhaustive.

See also