Auth API reference

Auth API · Apps

get/v1/apps/{app_id}/auth-config/providersAuth

List federated sign-in providers Auth supports, with their setup status for this app.

Each entry carries `status` (`ready` | `blocked` | `disabled` | `not_configured`) and `blocked_reasons`, computed on the server with the same rule the web sign-in flow enforces, so a provider shown as `ready` is one people can actually sign in with.

Path parameters

app_id*string

Id of the app.

Response · 200

Array of object

provider*string

The sign-in provider: `apple`, `google`, `github`, `microsoft`, or `oidc-<key>` for an OpenID Connect provider you added (the key is 1 to 32 lowercase letters, digits or hyphens that you choose, for example `oidc-okta`).

Example: "apple"

display_name*string

Human-readable name of the provider. For an OpenID Connect provider, the `display_name` you gave it.

Example: "Apple"

configured*boolean

True if there is a config row for this (app, provider).

enabled*boolean

True only when configured AND the row is enabled. Sign-in attempts against an unconfigured / disabled provider return 503.

status*object

Whether people can sign in with this provider right now, computed on the server with the same rule the web sign-in flow enforces. `ready`: switched on and nothing blocks sign-in. `blocked`: switched on, but sign-in fails until every `blocked_reasons` entry is fixed. `disabled`: configured but switched off. `not_configured`: no credentials saved for this provider.

Example: "blocked"

blocked_reasons*array

Why sign-in with this provider fails. Empty when `status` is `ready` or `not_configured`. For a `disabled` provider it lists what would block sign-in once switched on. - `no_redirect_origins`: The app has no allowed redirect origins, so web sign-in is refused. Add the origin of the site that starts sign-in (for example `https://app.example.com`) under Redirect origins. - `missing_credentials`: The stored provider credentials are incomplete or can no longer be read. Save the client id and secret (or Apple key) again. - `credentials_rejected`: The provider rejected the stored credentials the last time they were checked. Copy the client id and secret again from the provider console. - `discovery_failed`: OpenID Connect providers only: the last check could not use the issuer's discovery document (`{issuer}/.well-known/openid-configuration` unreachable, not https, invalid, or naming a different issuer). `last_check_error` says which. Fix the issuer, then check again.

Example: ["no_redirect_origins"]

last_check_at*string · date-time

When the credential check last ran. Null until it has run for the saved credentials.

last_check_result*object

Result of the last credential check (run on every save and on `POST …/{provider}/check`). `credentials_valid`: the provider recognised the client id and secret (it only refused the dummy sign-in code we sent). `credentials_rejected`: the provider does not accept the client id or secret; sign-in with this provider is blocked until they are fixed. `inconclusive`: the provider could not be reached or gave an answer we cannot read; nothing is blocked.

last_check_error*string

The provider's OAuth error code from the last check, if any.

Example: "invalid_client"

updated_atstring · date-time

When the provider was last changed (ISO 8601).

Example

Request

GET https://api.auth.productcraft.co/v1/apps/{app_id}/auth-config/providers
Authorization: Bearer YOUR_TOKEN

Response

[
  {
    "provider": "apple",
    "display_name": "Apple",
    "configured": false,
    "enabled": false,
    "status": "blocked",
    "blocked_reasons": [
      "no_redirect_origins"
    ],
    "last_check_at": "2026-01-01T00:00:00.000Z",
    "last_check_result": {},
    "last_check_error": "invalid_client",
    "updated_at": "2026-01-01T00:00:00.000Z"
  }
]