Apps

Other applications people sign in to with Passway, through OpenID Connect. Only members of an app's groups can sign in to it; an app with no groups lets nobody in.

The app model

An app: another application that people sign in to with Passway, as an OpenID Connect relying party. Only members of the app's groups can sign in to it; an app with no groups lets nobody in. Its ID is also its OAuth client_id.

Properties

  • Name
    id
    Type
    string
    Description

    App ID. It is also the OAuth client_id.

  • Name
    etag
    Type
    string
    Description

    Current version.

  • Name
    name
    Type
    string
    Description

    Display name, unique within the organization. People see it when they sign in.

  • Name
    description
    Type
    string
    Description

    Free text.

  • Name
    redirect_uris
    Type
    array of strings
    Description

    Where Passway may send people back after they sign in: exact https URLs, or http on a loopback address (127.0.0.1 or [::1], any port) for native apps (RFC 8252).

  • Name
    post_logout_redirect_uris
    Type
    array of strings
    Description

    Where Passway may send people after they sign out at the end session endpoint (post_logout_redirect_uri, OpenID Connect RP-Initiated Logout), under the same rules as redirect_uris.

  • Name
    group_ids
    Type
    array of strings
    Description

    The groups whose members may sign in. Nobody else can.

  • Name
    client_type
    Type
    string
    Description

    confidential for a server that keeps a client secret; public for a browser or native app that can't, and proves itself with PKCE alone. Set when the app is created. One of confidential, public.

  • Name
    id_token_signed_response_alg
    Type
    string
    Description

    The algorithm its ID tokens are signed with. One of ES256, RS256, ML-DSA-87.

  • Name
    offline_access
    Type
    boolean
    Description

    Whether people stay signed in to the app between visits: it may ask for the offline_access scope and get a refresh token, which works for 7 days unused and 30 days in all, and is replaced each time it is used. Off by default. Turning it off ends those sign-ins at their next refresh.

  • Name
    pkce_required
    Type
    boolean
    Description

    Whether the app must use PKCE (RFC 7636): an S256 code_challenge with every sign-in, and its verifier with the code. On by default, and always on for a public app. Only a confidential app can turn it off, for a library that doesn't send PKCE; it then relies on its secret and the ID token's nonce (RFC 9700 §2.1.1). A sign-in that sends a challenge must still redeem its code with the verifier.

  • Name
    labels
    Type
    object
    Description

    Labels.

  • Name
    managed_by
    Type
    string
    Description

    The tool that manages this resource, such as terraform. Can be null.

  • Name
    created_at
    Type
    timestamp
    Description

    When the app was created.

  • Name
    updated_at
    Type
    timestamp
    Description

    When the app last changed.


GET/v1/apps

List apps

Needs the apps:read scope.

Query parameters

  • Name
    page_size
    Type
    integer
    Description

    Results per page, 1 to 200. 0 or absent means 50; more than 200 means 200 (AIP-158).

  • Name
    page_token
    Type
    string
    Description

    next_page_token from the previous page.

  • Name
    updated_since
    Type
    timestamp
    Description

    Only resources changed at or after this time.

  • Name
    name
    Type
    string
    Description

    Only the app with this exact name.

  • Name
    group_id
    Type
    string
    Description

    Only apps this group may sign in to.

Request

GET
/v1/apps
curl https://acme.ext.passway.com/v1/apps \
  -H "Authorization: Bearer $PASSWAY_TOKEN"

Response

{
  "data": [
    {
      "id": "app_01jd8k3m2v9x4q7r5t6w8y0z1a",
      "etag": "3f9a",
      "name": "Expenses",
      "description": "…",
      "redirect_uris": [
        "…"
      ],
      "post_logout_redirect_uris": [
        "…"
      ],
      "group_ids": [
        "grp_01jd8k3m2v9x4q7r5t6w8y0z1a"
      ],
      "client_type": "confidential",
      "id_token_signed_response_alg": "ES256",
      "offline_access": true,
      "pkce_required": true,
      "labels": {
        "passway.example/cost-center": "4410",
        "team": "facilities"
      },
      "managed_by": "terraform",
      "created_at": "2026-11-30T14:02:11Z",
      "updated_at": "2026-11-30T14:02:11Z"
    }
  ],
  "next_page_token": null
}

POST/v1/apps

Create an app

A confidential app's client secret is in the response and never shown again. A public app gets none and must use PKCE.

Needs the apps:write scope.

Headers

  • Name
    Idempotency-Key
    Type
    string
    Description

    A unique key, such as a UUID. Repeating a successful request with the same key within 24 hours returns the original response; reusing it for a different request returns 422; repeating it while the first is still running returns 409 with Retry-After.

Required attributes

  • Name
    name
    Type
    string
    Description

    Display name, unique within the organization.

  • Name
    redirect_uris
    Type
    array of strings
    Description

    Where Passway may send people back: exact https URLs, or http on 127.0.0.1 or [::1] for native apps. No fragments, no user information.

Optional attributes

  • Name
    description
    Type
    string
    Description

    Free text.

  • Name
    post_logout_redirect_uris
    Type
    array of strings
    Description

    Where Passway may send people after they sign out, under the same rules. None by default.

  • Name
    group_ids
    Type
    array of strings
    Description

    The groups whose members may sign in. Empty lets nobody in.

  • Name
    client_type
    Type
    string
    Description

    confidential (the default) gets a client secret; public gets none and must use PKCE. Can't be changed later. One of confidential, public.

  • Name
    id_token_signed_response_alg
    Type
    string
    Description

    The algorithm its ID tokens are signed with: ES256 by default. One of ES256, RS256, ML-DSA-87.

  • Name
    offline_access
    Type
    boolean
    Description

    Whether people stay signed in to the app between visits: it may ask for the offline_access scope and get a refresh token, which works for 7 days unused and 30 days in all, and is replaced each time it is used. Off by default. Turning it off ends those sign-ins at their next refresh.

  • Name
    pkce_required
    Type
    boolean
    Description

    Whether the app must use PKCE (RFC 7636): an S256 code_challenge with every sign-in, and its verifier with the code. On by default, and always on for a public app. Only a confidential app can turn it off, for a library that doesn't send PKCE; it then relies on its secret and the ID token's nonce (RFC 9700 §2.1.1). A sign-in that sends a challenge must still redeem its code with the verifier.

  • Name
    labels
    Type
    object
    Description

    Labels.

  • Name
    managed_by
    Type
    string
    Description

    The tool that manages this resource. Terraform sets terraform.

Request

POST
/v1/apps
curl -X POST https://acme.ext.passway.com/v1/apps \
  -H "Authorization: Bearer $PASSWAY_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Expenses",
    "redirect_uris": [
      "…"
    ],
    "client_type": "confidential",
    "id_token_signed_response_alg": "ES256",
    "labels": {
      "passway.example/cost-center": "4410",
      "team": "facilities"
    },
    "managed_by": "terraform"
  }'

Response

{
  "app": {
    "id": "app_01jd8k3m2v9x4q7r5t6w8y0z1a",
    "etag": "3f9a",
    "name": "Expenses",
    "description": "…",
    "redirect_uris": [
      "…"
    ],
    "post_logout_redirect_uris": [
      "…"
    ],
    "group_ids": [
      "grp_01jd8k3m2v9x4q7r5t6w8y0z1a"
    ],
    "client_type": "confidential",
    "id_token_signed_response_alg": "ES256",
    "offline_access": true,
    "pkce_required": true,
    "labels": {
      "passway.example/cost-center": "4410",
      "team": "facilities"
    },
    "managed_by": "terraform",
    "created_at": "2026-11-30T14:02:11Z",
    "updated_at": "2026-11-30T14:02:11Z"
  },
  "client_secret": "pwas_7Hq2kX9vN4mP8sL3wQ5rT1yU6iO0pA2s"
}

GET/v1/apps/{app_id}

Get an app

Needs the apps:read scope.

Path parameters

  • Name
    app_id
    Type
    string
    Description

    App ID: app_ followed by 1 to 64 lowercase letters and digits.

Request

GET
/v1/apps/{app_id}
curl https://acme.ext.passway.com/v1/apps/app_01jd8k3m2v9x4q7r5t6w8y0z1a \
  -H "Authorization: Bearer $PASSWAY_TOKEN"

Response

{
  "id": "app_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "etag": "3f9a",
  "name": "Expenses",
  "description": "…",
  "redirect_uris": [
    "…"
  ],
  "post_logout_redirect_uris": [
    "…"
  ],
  "group_ids": [
    "grp_01jd8k3m2v9x4q7r5t6w8y0z1a"
  ],
  "client_type": "confidential",
  "id_token_signed_response_alg": "ES256",
  "offline_access": true,
  "pkce_required": true,
  "labels": {
    "passway.example/cost-center": "4410",
    "team": "facilities"
  },
  "managed_by": "terraform",
  "created_at": "2026-11-30T14:02:11Z",
  "updated_at": "2026-11-30T14:02:11Z"
}

PATCH/v1/apps/{app_id}

Update an app

A JSON merge patch (RFC 7396): fields in the body replace the current ones, null removes a field where the schema allows null, and objects such as labels are merged. Requires If-Match with the current etag.

Needs the apps:write scope.

Path parameters

  • Name
    app_id
    Type
    string
    Description

    App ID: app_ followed by 1 to 64 lowercase letters and digits.

Headers

  • Name
    If-Match
    Type
    string
    Description

    The resource's current etag, in double quotes. Required.

Optional attributes

  • Name
    name
    Type
    string
    Description

    New name.

  • Name
    description
    Type
    string
    Description

    New description.

  • Name
    redirect_uris
    Type
    array of strings
    Description

    New redirect URIs, replacing the current ones.

  • Name
    post_logout_redirect_uris
    Type
    array of strings
    Description

    New post-logout redirect URIs, replacing the current ones; [] for none.

  • Name
    group_ids
    Type
    array of strings
    Description

    New groups, replacing the current ones.

  • Name
    id_token_signed_response_alg
    Type
    string
    Description

    A new ID token algorithm. One of ES256, RS256, ML-DSA-87.

  • Name
    offline_access
    Type
    boolean
    Description

    Whether people stay signed in with refresh tokens. Turning it off ends those sign-ins at their next refresh.

  • Name
    pkce_required
    Type
    boolean
    Description

    Whether the app must use PKCE. Only a confidential app can turn it off. Turning it on refuses codes issued without a challenge that haven't been redeemed yet.

  • Name
    labels
    Type
    object
    Description

    Labels to set or remove, or null to remove every label. Can be null.

  • Name
    managed_by
    Type
    string
    Description

    New managing tool, or null to clear it. Can be null.

Request

PATCH
/v1/apps/{app_id}
curl -X PATCH https://acme.ext.passway.com/v1/apps/app_01jd8k3m2v9x4q7r5t6w8y0z1a \
  -H "Authorization: Bearer $PASSWAY_TOKEN" \
  -H 'If-Match: "3f9a"' \
  -H "Content-Type: application/merge-patch+json" \
  -d '{
    "id_token_signed_response_alg": "ES256",
    "labels": {
      "old-label": null,
      "team": "security"
    }
  }'

Response

{
  "id": "app_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "etag": "3f9a",
  "name": "Expenses",
  "description": "…",
  "redirect_uris": [
    "…"
  ],
  "post_logout_redirect_uris": [
    "…"
  ],
  "group_ids": [
    "grp_01jd8k3m2v9x4q7r5t6w8y0z1a"
  ],
  "client_type": "confidential",
  "id_token_signed_response_alg": "ES256",
  "offline_access": true,
  "pkce_required": true,
  "labels": {
    "passway.example/cost-center": "4410",
    "team": "facilities"
  },
  "managed_by": "terraform",
  "created_at": "2026-11-30T14:02:11Z",
  "updated_at": "2026-11-30T14:02:11Z"
}

DELETE/v1/apps/{app_id}

Delete an app

Its secret goes with it; people can no longer sign in to it.

Needs the apps:write scope.

Path parameters

  • Name
    app_id
    Type
    string
    Description

    App ID: app_ followed by 1 to 64 lowercase letters and digits.

Headers

  • Name
    If-Match
    Type
    string
    Description

    The resource's current etag, in double quotes. Required.

Request

DELETE
/v1/apps/{app_id}
curl -X DELETE https://acme.ext.passway.com/v1/apps/app_01jd8k3m2v9x4q7r5t6w8y0z1a \
  -H "Authorization: Bearer $PASSWAY_TOKEN" \
  -H 'If-Match: "3f9a"'

Response

204 Deleted

POST/v1/apps/{app_id}:rotate-secret

Rotate an app's client secret

Returns a new secret, which replaces the old one at once. A public app has no secret: 409.

Needs the apps:write scope.

Path parameters

  • Name
    app_id
    Type
    string
    Description

    App ID: app_ followed by 1 to 64 lowercase letters and digits.

Headers

  • Name
    If-Match
    Type
    string
    Description

    If set, the action only runs if the resource's etag still matches.

  • Name
    Idempotency-Key
    Type
    string
    Description

    A unique key, such as a UUID. Repeating a successful request with the same key within 24 hours returns the original response; reusing it for a different request returns 422; repeating it while the first is still running returns 409 with Retry-After.

Request

POST
/v1/apps/{app_id}:rotate-secret
curl -X POST https://acme.ext.passway.com/v1/apps/app_01jd8k3m2v9x4q7r5t6w8y0z1a:rotate-secret \
  -H "Authorization: Bearer $PASSWAY_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)"

Response

{
  "app": {
    "id": "app_01jd8k3m2v9x4q7r5t6w8y0z1a",
    "etag": "3f9a",
    "name": "Expenses",
    "description": "…",
    "redirect_uris": [
      "…"
    ],
    "post_logout_redirect_uris": [
      "…"
    ],
    "group_ids": [
      "grp_01jd8k3m2v9x4q7r5t6w8y0z1a"
    ],
    "client_type": "confidential",
    "id_token_signed_response_alg": "ES256",
    "offline_access": true,
    "pkce_required": true,
    "labels": {
      "passway.example/cost-center": "4410",
      "team": "facilities"
    },
    "managed_by": "terraform",
    "created_at": "2026-11-30T14:02:11Z",
    "updated_at": "2026-11-30T14:02:11Z"
  },
  "client_secret": "pwas_7Hq2kX9vN4mP8sL3wQ5rT1yU6iO0pA2s"
}