PingAM

Realms

Realms are administrative units that group configuration and identities together.

The AM installation process creates the Top Level Realm (/), which contains AM default configuration data. You can’t delete or rename the Top Level Realm, as it is the root of the realm hierarchy.

The Top Level Realm can contain sub-realms, which can also contain sub-realms.

Realms are associated with an identity store and, at least, one authentication tree. When you create a new realm, AM copies part of the configuration of the parent realm to the new realm. For example, authentication trees and the configuration of identity, policy, and application stores are copied to the new realm. If policies are stored in the configuration store, these are also copied to the new realm.

When you create a realm, its configuration is separate from that of the parent realm. Configuration changes made to the parent realm, or to the new realm, aren’t shared. If realms share datastores, they also share the configuration or data kept in the store.

For example, identities, groups, and privileges are linked to identity stores. Realms that share an identity store also share identity groups and the privileges granted to them. In the same way, realms that share a policy store share policy configuration, and realms that share an application store share OAuth 2.0 client configuration.

Common use cases

Match your situation to the realm configuration:

  • Separating populations or applications: Different user populations, partners, or applications need isolated configuration, authentication journeys, or identity stores. Create a sub-realm for each, with its own services and authentication configuration. Learn more in Create a new realm (UI) and Create a realm (REST).

  • Accessing a realm by its own domain name: Users must reach a realm at a URL on its own domain, such as https://employees.example.com:8443/am or https://customers.example.com:8443/am, instead of a realm parameter in the query string. Configure DNS aliases for the realm so AM routes requests to it without exposing the Top Level Realm. Learn more in Configure DNS aliases to access a realm.

  • Multi-tenant operation: You operate AM for many tenants, and each new tenant needs its own realm and policies. Plan realm creation as a repeatable process, and account for the growth in configuration data and policies in your sizing. Learn more in Size hardware and services for deployment.

  • Client-side sessions in a realm: One realm needs client-side sessions, for example, a sub-realm for APIs or partner access, while the rest of the deployment uses server-side sessions. Enable client-side sessions for the realm and review the limitations first. Learn more in Core authentication attributes and Limitations of client-side sessions.

Best practices for configuring realms

Separate administrative users from end users

Create realms for your organizations and separate administrative users from end users, keeping the administrative users constrained to the Top Level Realm. This way, if one of your identity stores is compromised, malicious users won’t have the credentials of any AM administrators, which could further compromise your platform.

For this configuration to work, you need an identity store in the Top Level Realm that contains your administrative users and different identity store(s) for other realms/users.

Create realms to isolate identities

Keep users with different authentication and authorization requirements separate. For example, teachers in a University department would have access to more sensitive data than students do. Configuring a realm for teachers and another realm for students lets you enforce stricter security policies for teachers.

Keep the Top Level Realm for administration purposes only

The Top Level Realm shouldn’t contain federation configuration, agent profiles, OAuth 2.0/OpenID Connect/UMA providers, or Security Token Service (STS) instances.

Direct users to the correct realm

When you have multiple realms, you must direct users to the correct realm for authentication. To specify the authentication realm, do one of the following:

  • Use the realm=realm-name query string parameter.

  • Create fully qualified domain name DNS aliases for your realms.

    Creating DNS aliases for realms doesn’t make them more secure. An authenticated user that knows your AM configuration can go to other realms, such as the Top Level Realm, by adding the ?realm=/ parameter to their URL.