# Example: Ignition Perspective Single Sign-On

- Link: https://www.agilicus.com/anyx-guide/example-ignition-perspective-single-sign-on/
- Published: 2026-11-21T17:17:32+00:00
- Author: Don Bowman

Inductive Automation Ignition Perspective delivers the human-machine interface to
a browser. It uses the same OpenID Connect provider as gateway and Designer sign-
in, but the Perspective project adds one step: the project must require authentication,
and the session must be tied to that provider. Without it, Perspective serves the
project anonymously and shows a sign-in control. With it, the dashboard opens with
the operator’s identity, and sign-out ends the AnyX session.

This example starts from the gateway application and client in the [Ignition single sign-on example](https://www.agilicus.com/anyx-guide/example-ignition-single-sign-on/).
If you have not built those, follow that example first. The redirect is the same
fixed callback. Then set the Perspective project, sign in, and configure the logout
that survives a long identity token.

## What you need

 * Ignition 8.3 or later. This example uses 8.3.10.
 * A Perspective project with at least one page and view.
 * The Ignition application and OpenID Connect client from the Ignition example.
 * A gateway administrator account for the project configuration.
 * A test user in AnyX with realistic group membership, so the logout test exercises
   a full token.

## The same application and client

The gateway application and client do not change for Perspective. The client redirect
is `https://ignition.example.com/data/federate/callback/oidc`, the same callback
the gateway uses. The same provider serves gateway, Designer and Perspective sessions.
If you already followed the Ignition example, the application, client and identity
provider are ready; skip to the project configuration.

Each surface has its own switch. The surfaces share one provider, but each enforces
sign-in in its own place.

| Surface | What enforces sign-in | Where to set it | 
| Gateway | System Identity Provider | Platform, Security, General Settings | 
| Designer | Designer Authentication Strategy | Platform, Security, General Settings | 
| Perspective | Project Identity Provider and project permissions | Project edit, Security Settings; Designer, Project Properties, Perspective, Permissions |

Perspective is the surface with two controls. The project’s Identity Provider decides
which provider handles the session. The project’s permissions decide whether the
project requires a session at all. Setting the provider without requiring authentication
leaves the project open. Requiring authentication is what turns the sign-in control
into an identity-bearing session.

## Point the project at the provider

In the gateway, open Platform, Projects, choose the project, then Edit. Scroll to
Security Settings and set Identity Provider to the AnyX provider. Save the project.

![The Ignition project security settings with the Identity Provider set to agilicus](
https://storage.googleapis.com/agilicus/www/b02fc45d-perspective-project-security.
png)

The project’s Security Settings: the Identity Provider is the AnyX provider.

In Designer, open Project Properties, then Perspective, then Permissions. Select`
Authenticated` and `AnyOf`, then save the project. That setting is the difference
from a gateway-only setup: without it, the project loads anonymously and the session
never carries the operator’s identity. If you use roles, add the role security levels
the project needs. Map AnyX groups to Ignition roles with User Attribute Mapping
or User Grants.

The project’s Identity Provider is separate from the gateway’s System Identity Provider.
You can keep the gateway on its internal administrator account while Perspective
uses AnyX, or set both to the provider. Perspective uses the same security levels
as the gateway.

## Sign in

Open `https://ignition.example.com/data/perspective/client/<Project>`, or launch
the project from the gateway’s Perspective page. With the project requiring authentication,
Perspective shows its login page with the provider button. Click it.

AnyX signs the user in, applies multi-factor authentication if policy requires it,
and returns to the project. The dashboard loads with the user’s identity and roles.
The browser never sees the gateway’s internal address.

![An Ignition Perspective operator dashboard signed in through Agilicus AnyX, showing
filtration KPIs, alarms and pump status](https://storage.googleapis.com/agilicus/
www/38a4e9ed-perspective-dashboard.png)

A Perspective operator view after OpenID Connect sign-in through Agilicus AnyX.

The session header shows the user’s initials or name, and the gateway audit log 
records the sign-in under the full address. The dashboard can use the session roles
for component security, navigation and visibility.

## Sign out: the long-token trap

Click Sign Out in the Perspective session. The gateway calls `GET /data/perspective/
logout/<Project>`, builds an end-session redirect to the provider, and puts the 
entire identity token in the `id_token_hint` query parameter. For a short token 
that is a normal 302. For a token that carries a large group and role membership,
the redirect becomes a Location response header larger than Jetty’s 8,192-byte response
header limit.

In this test, a Perspective session with a 12,932-character identity token returned
HTTP 500 at `Routes.logout`. Jetty reported `Response Header Fields Too Large` before
the browser reached AnyX. The failure is on the gateway, not the provider.

On the identity provider, enable Logout using HTTP POST. The gateway then returns
a small `/data/federate/logout` page and submits the token in a form body. The same
test sent a 13,275-byte body to `/endsession_prompt` and returned HTTP 200.

![The Ignition identity provider settings with the Logout using HTTP POST option
enabled](https://storage.googleapis.com/agilicus/www/38a4e9ed-perspective-idp-logout-
post.png)

Ignition identity provider settings: Logout using HTTP POST enabled for the AnyX
provider.

![Captured logout request comparing an HTTP POST body with a failing HTTP GET Location
header for a long ID token](https://storage.googleapis.com/agilicus/www/38a4e9ed-
perspective-logout-post.png)

The same identity token, two transport choices. POST keeps the token out of the 
response header.

![The Agilicus AnyX sign-out confirmation page after an Ignition Perspective logout](
https://storage.googleapis.com/agilicus/www/38a4e9ed-perspective-logout-confirm.
png)

The AnyX sign-out confirmation after a POST-based Perspective logout.

The setting is on the provider, so it also covers gateway and Designer sign-out.
Keep the Logout URL at the issuer’s end-session endpoint. Test with a user who has
realistic group membership; a short test account can hide the failure.

## If it does not work

 * **Perspective loads without a sign-in prompt.** The project still allows anonymous
   sessions. Set `Authenticated` and `AnyOf` in Project Properties, Perspective,
   Permissions.
 * **The sign-in button returns to the project but the user is still anonymous.**
   The project Identity Provider is not set, or the client redirect does not match.
   Check Security Settings and `https://ignition.example.com/data/federate/callback/
   oidc`.
 * **Every user appears as the provider name.** User Attribute Mapping is missing.
   Map the username to `preferred_username` and the email to `email`.
 * **Sign-out returns 500 Response Header Fields Too Large.** Enable Logout using
   HTTP POST and test with a realistic token.
 * **The dashboard loads but the user has no roles.** Map AnyX groups to Ignition
   roles or add User Grants. Perspective uses the same security levels as the gateway.
 * **Sign-out returns to the gateway login but the AnyX session remains.** The provider
   did not complete the end-session. Check the Logout URL and that the provider 
   accepts the request; the POST setting keeps a long token out of the header.

## Related

The gateway application, client and identity provider come from the [Ignition single sign-on example](https://www.agilicus.com/anyx-guide/example-ignition-single-sign-on/).
For the access architecture and the operator view, see the [Ignition Perspective use case](https://www.agilicus.com/use-case/ignition-perspective-single-sign-on/).
For the portal side, see [Authentication Clients](https://www.agilicus.com/anyx-guide/authentication-clients/)
and [Application Identity](https://www.agilicus.com/anyx-guide/agilicus-anyx-administrative-web-interface/authentication/application-identity/).
To place the connector, see [Linux, FreeBSD, Embedded Connector Install](https://www.agilicus.com/anyx-guide/generic-connector-install/).
The Ignition settings follow the [OpenID Connect 1.0 example](https://docs.inductiveautomation.com/docs/8.3/platform/security/identity-provider-authentication-strategy/configuring-identity-providers/openid-connect-1-example)
and [User Grants](https://docs.inductiveautomation.com/docs/8.3/platform/security/identity-provider-authentication-strategy/user-grants)
pages.
