Skip to content
FedTrustFederated TrustDocs

Enter at least two characters.

Type to search all documentation pages and sections. Use ↑ ↓ to move, Enter to open, and Esc to close.

Get started

Add Federated Trust sign-in to an application

From registration to signing in a command-line client, against the production issuer.

Authorization code flow PKCE with S256 Device grant and DPoP
  1. Request registration

    Each application and each of its deployments is registered after review. Request access to start.

    • A redirect address must match the registered address exactly and must use HTTPS.
    • The one exception is a native client’s loopback address, which uses HTTP and may vary only in its port.
  2. Read the discovery document

    The issuer is https://id.federatedtrust.com. It publishes its endpoints and supported features at /.well-known/openid-configuration and /.well-known/oauth-authorization-server.

    • Use any standards-compliant OpenID Connect library. No Federated Trust package is published to npm or JSR.
  3. Sign people in with the authorization code flow

    Every application, public or confidential, must use PKCE with the S256 method. Implicit and hybrid flows are not offered.

    • Send a nonce of 16 to 256 characters with an OpenID Connect request.
    • The standard scopes are openid, profile, email and offline_access.
    • A client authenticates as a public client or with client_secret_basic.
  4. Validate the tokens

    ID tokens are signed with ES256. Signing keys for access tokens and ID tokens are published at /.well-known/jwks.json.

    • Check the issuer, the audience and the expiry of each token.
    • Access tokens are short-lived. Most applications use 15 minutes.
    • A UserInfo endpoint is served.
  5. Refresh tokens and sign out

    For most applications, a refresh token is replaced each time it is used. Presenting a replaced one revokes the whole chain of refresh tokens it belongs to.

    • End a session through the end-session endpoint.
    • Revoking a refresh token revokes its chain of refresh tokens. Access tokens already issued stay valid until they expire.
  6. Sign in command-line clients

    A command-line client uses the device authorization grant. It shows a short code, and the person approves it in a browser.

    • Most command-line clients must use DPoP with ES256, which binds each token to a key the client holds.
    • The fedtrustctl client does this and connects a coding agent to an application’s MCP server.

More detail