# Applications

> Connect your apps, APIs, services and agents to your realm, with single sign-on over OpenID Connect, tokens over OAuth 2.0, and the controls that decide who gets which token and for how long.

Every realm is its own authorization server. You register each app, and your users sign in to it once, on the realm's
own pages; your services and AI agents get tokens of their own; and your APIs check those tokens before they answer.
The realm speaks the open standards for this, so any OAuth 2.0 or OpenID Connect library works with it.

The one idea to hold: **OAuth 2.0 decides what a caller may do, OpenID Connect says who signed in.** An app gets an
access token that names one API and what it allows; with OpenID Connect it also gets an ID token about the user.
Most realms start with three: a browser sign-in for their apps, client credentials for their services, and token
exchange when agents act for users.

<CardGrid>
  <LinkCard title="Register an app" description="Add an app, choose how it signs in, and what it may ask for." href="./register-an-app/" />
  <LinkCard title="Authorization code with PKCE" description="Sign users in to a web, single-page or mobile app." href="./single-sign-on/authorization-code/" />
  <LinkCard title="Client credentials" description="A service gets a token for itself, with no user involved." href="./tokens/client-credentials/" />
  <LinkCard title="Revoke tokens" description="Take back a token, or everything issued under a sign-in." href="./revoke-access/revocation/" />
</CardGrid>

Your realm answers at its own host, under `/oauth2`: the issuer is `https://foobar.cvyuh.com/oauth2`, and apps read
every endpoint from its [Discovery document](./registration/discovery/). To keep one issuer whatever host name an app
uses, set the [Realm base URL](../../platform/realms/realm-base-url/).

## Capabilities

### Connect an app

| Capability | What it gives you |
|---|---|
| [Register an app](./register-an-app/) | Each app, service and agent registered as a client, with what it may use and ask for |
| [Realm OAuth settings](./oauth-settings/) | The grants, scopes, client methods and lifetimes every app works within |

### Single sign-on

| Capability | What it gives you |
|---|---|
| [Authorization code with PKCE](./single-sign-on/authorization-code/) | Users sign in through the browser; the app gets tokens and never sees a password |
| [OpenID Connect sign-in](./single-sign-on/openid-connect/) | The app learns who signed in, with the user details each scope releases |
| [Consent](../../customer-identity/consent/) | Users see what an app asks for, allow or deny it, and can take it back |
| [Refresh tokens](./single-sign-on/refresh-tokens/) | Apps stay signed in; a stolen refresh token is caught when it is reused, when the app rotates its tokens (always, for public apps) |
| [Logout](./single-sign-on/logout/) | Signing out of one app ends the session, and other apps are told |
| [Step-up and re-authentication](./single-sign-on/step-up/) | A stronger or more recent sign-in before a sensitive action |
| [Browser apps](./single-sign-on/browser-apps/) | Single-page apps call the realm from the browser, from the sites each one lists |
| [First-party app sign-in](./single-sign-on/first-party-apps/) | Your own native app signs users in with its own screens |
| [Device authorization](./single-sign-on/device-authorization/) | TVs and command-line tools sign in with a code typed on another device |

### Tokens

| Capability | What it gives you |
|---|---|
| [Access tokens](./tokens/access-tokens/) | Short-lived signed tokens your API checks on its own |
| [Client credentials](./tokens/client-credentials/) | A service or agent gets a token for itself |
| [Resource indicators](./tokens/resource-indicators/) | Each token names the one API it is for |
| [Token exchange](./tokens/token-exchange/) | An agent acts for a user, and the token names both |
| [Transaction tokens](./tokens/transaction-tokens/) | One request's identity and purpose carried through your internal services |
| [Identity assertion grant](./tokens/identity-assertion-grant/) | A trusted partner's statement about a linked user buys a token here, from the partner servers you trust and the users you link |
| [Issuing identity assertions](./tokens/identity-assertion-issuing/) | The realm vouches for its users to a partner you name |
| [Cross-domain chaining](./tokens/cross-domain-chaining/) | Authority crosses to another domain, keeping who acts for whom |
| [Token swap](/gateway/protect-apis/token-swap/) | A gateway calls each upstream with a token meant for it, never the caller's own (with limits) |
| [Rich authorization requests](../authorization/rich-authorization-requests/) | Structured, precise permissions in place of plain scopes |

### Client security

| Capability | What it gives you |
|---|---|
| [Client authentication](./client-security/client-authentication/) | How a client proves who it is, and secret rotation with an overlap |
| [Client attestation](./client-security/attestation/) | An agent proves which software and which instance it is |
| [DPoP](./client-security/dpop/) | Tokens bound to the client's key, useless to anyone who copies them |
| [Certificate-bound tokens](./client-security/certificate-bound-tokens/) | Clients sign in with a TLS certificate, and their tokens are bound to it (with limits: self-signed certificates only) |
| [Security profiles](./client-security/security-profiles/) | One setting holds a client to OAuth 2.1 or FAPI 2.0 |
| [Pushed authorization requests](./client-security/pushed-authorization-requests/) | The sign-in request goes straight to the realm, not through the browser |
| [Signed request objects](./client-security/request-objects/) | A signed, optionally encrypted sign-in request, and its answer posted back |
| [Replay protection](./client-security/client-authentication/#good-to-know) | Every code and every one-use token ID is accepted once |
| [Safe outbound calls](./registration/client-metadata-documents/#how-the-realm-fetches-the-document) | Every document the realm fetches and every call it makes reaches public addresses only, within a time limit |

### Revoke access

| Capability | What it gives you |
|---|---|
| [Revoke tokens](./revoke-access/revocation/) | A client revokes a token; a refresh token takes everything issued under it |
| [Introspection](./revoke-access/introspection/) | An API asks whether a token still stands, at the moment of asking |
| [Status lists](./revoke-access/status-lists/) | An API checking tokens offline still learns which were revoked |

### Registration and discovery

| Capability | What it gives you |
|---|---|
| [Discovery document](./registration/discovery/) | Clients read the realm's endpoints, grants and keys from one public document |
| [Signing keys](../../platform/keys/signing-keys/) | The keys that sign the realm's tokens, published and rotated |
| [Dynamic registration](./registration/dynamic-registration/) | Developers register their own apps, with a token you hand out |
| [Client metadata documents](./registration/client-metadata-documents/) | An app identified by a URL is accepted from the document it publishes |

Every capability, with the standard it follows, is in [All capabilities](../../reference/capabilities/) and
[Standards](../../reference/standards/). Some parts of the standards are left out on purpose, such as a client
changing its own registration: see [Not offered](../../reference/not-offered/#client-self-management).

## Coming next

- **Sign in with another provider:** users sign in with an account at another OpenID Connect or SAML 2.0 provider.
  See [What's next for authentication](../authentication/whats-next/#signing-in-with-another-provider).
- **SAML apps:** the realm signs users in to apps that speak SAML 2.0. See
  [What's next for authentication](../authentication/whats-next/#signing-users-in-to-saml-apps).
- **Ed25519 signing:** a fourth algorithm for ID tokens and signed answers. See
  [What's next for keys](/platform/keys/whats-next/#ed25519-signing).

## Guides

- [Sign users in to a web app](../guides/sign-in-to-apps/sign-in-web-app/)
- [Sign users in to a single-page app](../guides/sign-in-to-apps/single-page-app/)
- [Sign users in to your own native app](../guides/sign-in-to-apps/native-app-sign-in/)
- [Sign in a TV or command-line tool](../guides/sign-in-to-apps/sign-in-a-tv-or-cli/)
- [Show or skip the consent page](../../customer-identity/guides/consent-screen/)
- [Keep apps signed in](../guides/sessions/keep-apps-signed-in/)
- [Sign users out from an app](../guides/sessions/sign-out-from-an-app/)
- [Step up for sensitive actions](../guides/stronger-sign-in/step-up-for-sensitive-actions/)
- [Let one service call another](../guides/services/service-to-service/)
- [Let an agent act for a user](../guides/agents/agent-acts-for-a-person/)
- [Bind tokens to a key](../guides/services/bind-tokens-to-a-key/)
- [Revoke a token](../../gateway/guides/revoke-a-token/)
- [Let developers register their own apps](../guides/partners/developers-register-apps/)
- [Accept a partner's identity](../guides/partners/accept-a-partner-identity/)
