Identity providers
The organization's own identity providers (Okta, Microsoft Entra ID, Google), which administrators sign in with over OpenID Connect at /sign-in. Role rules give each person a role from their ID token's claims: admin, security or viewer. Nobody matches, nobody gets in.
The identity provider model
An identity provider administrators sign in with.
Properties
- Name
id- Type
- string
- Description
Identity provider ID.
- Name
etag- Type
- string
- Description
Current version, for
If-Match.
- Name
name- Type
- string
- Description
Unique in the organization; shown on the sign-in page.
- Name
issuer- Type
- string
- Description
The provider's OpenID Connect issuer.
- Name
client_id- Type
- string
- Description
The client ID Passway has at the provider.
- Name
scopes- Type
- array of strings
- Description
Scopes to ask for.
- Name
enabled- Type
- boolean
- Description
While false, nobody signs in with it.
- Name
phone_sign_in_days- Type
- integer
- Description
How often, in days, a phone enrolled by signing in through this provider must sign in through it again (#336). In between, the phone renews its badge with its own keys; after it, the phone gets no new badge until the person signs in again, and its last one stops at its expiry (3 days at most).
- Name
phone_check_minutes- Type
- integer
- Description
How often, in minutes, Passway asks this provider whether the person behind each phone enrolled through it is still there (#336). When a phone signs in, Passway asks for a refresh token (
offline_access; Google'saccess_type=offline). It then refreshes it at this interval. A refusal (invalid_grant: the person was deactivated or their sessions revoked) suspends the credential at once, at the readers too, until the person signs in through the provider again.0turns the checks off and asks for no refresh token; phones then rely onphone_sign_in_daysalone.
- Name
redirect_uri- Type
- string
- Description
The redirect URI to register at the provider.
- Name
labels- Type
- object
- Description
Labels.
- Name
managed_by- Type
- string
- Description
The tool that manages it, if any. Can be
null.
- Name
created_at- Type
- timestamp
- Description
When it was created.
- Name
updated_at- Type
- timestamp
- Description
When it last changed.
List identity providers
Needs the identity-providers:read scope.
Query parameters
- Name
page_size- Type
- integer
- Description
Results per page, 1 to 200.
0or absent means 50; more than 200 means 200 (AIP-158).
- Name
page_token- Type
- string
- Description
next_page_tokenfrom the previous page.
- Name
updated_since- Type
- timestamp
- Description
Only resources changed at or after this time.
- Name
enabled- Type
- boolean
- Description
Only enabled or only disabled ones.
Request
curl https://acme.ext.passway.com/v1/identity-providers \
-H "Authorization: Bearer $PASSWAY_TOKEN"
Response
{
"data": [
{
"id": "idp_01jd8k3m2v9x4q7r5t6w8y0z1a",
"etag": "3f9a",
"name": "Okta",
"issuer": "https://acme.okta.com",
"client_id": "apc_01jd8k3m2v9x4q7r5t6w8y0z1a",
"scopes": [
"…"
],
"enabled": true,
"phone_sign_in_days": 30,
"phone_check_minutes": 60,
"redirect_uri": "https://acme.ext.passway.com/sign-in/callback",
"labels": {
"passway.example/cost-center": "4410",
"team": "facilities"
},
"managed_by": null,
"created_at": "2026-11-30T14:02:11Z",
"updated_at": "2026-11-30T14:02:11Z"
}
],
"next_page_token": null
}
Create an identity provider
Register redirect_uri from the answer at the provider. The client secret is kept sealed and never returned.
Needs the identity-providers: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 returns409withRetry-After.
Required attributes
- Name
name- Type
- string
- Description
Unique in the organization.
- Name
issuer- Type
- string
- Description
The provider's issuer: an
httpsURL with its discovery document at/.well-known/openid-configuration.
- Name
client_id- Type
- string
- Description
The client ID Passway has at the provider.
Optional attributes
- Name
client_secret- Type
- string
- Description
The client secret. Kept sealed and never returned; change it with
:set-client-secret.
- Name
scopes- Type
- array of strings
- Description
Scopes to ask for. Default
openid email profile; addgroupsfor Okta's groups claim.
- Name
enabled- Type
- boolean
- Description
Whether it starts enabled. Default true.
- Name
phone_sign_in_days- Type
- integer
- Description
How often, in days, a phone enrolled by signing in through it must sign in through it again. Default 30.
- Name
phone_check_minutes- Type
- integer
- Description
How often, in minutes, to ask the provider whether each phone's person is still there: 5 to 1440, or 0 for never. Default 60.
- Name
labels- Type
- object
- Description
Labels.
- Name
managed_by- Type
- string
- Description
The tool that manages it, if any.
Request
curl -X POST https://acme.ext.passway.com/v1/identity-providers \
-H "Authorization: Bearer $PASSWAY_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"name": "…",
"issuer": "https://acme.ext.passway.com",
"client_id": "apc_01jd8k3m2v9x4q7r5t6w8y0z1a",
"labels": {
"passway.example/cost-center": "4410",
"team": "facilities"
}
}'
Response
{
"id": "idp_01jd8k3m2v9x4q7r5t6w8y0z1a",
"etag": "3f9a",
"name": "Okta",
"issuer": "https://acme.okta.com",
"client_id": "apc_01jd8k3m2v9x4q7r5t6w8y0z1a",
"scopes": [
"…"
],
"enabled": true,
"phone_sign_in_days": 30,
"phone_check_minutes": 60,
"redirect_uri": "https://acme.ext.passway.com/sign-in/callback",
"labels": {
"passway.example/cost-center": "4410",
"team": "facilities"
},
"managed_by": null,
"created_at": "2026-11-30T14:02:11Z",
"updated_at": "2026-11-30T14:02:11Z"
}
Get an identity provider
Needs the identity-providers:read scope.
Path parameters
- Name
identity_provider_id- Type
- string
- Description
Identity provider ID:
idp_followed by 1 to 64 lowercase letters and digits.
Request
curl https://acme.ext.passway.com/v1/identity-providers/idp_01jd8k3m2v9x4q7r5t6w8y0z1a \
-H "Authorization: Bearer $PASSWAY_TOKEN"
Response
{
"id": "idp_01jd8k3m2v9x4q7r5t6w8y0z1a",
"etag": "3f9a",
"name": "Okta",
"issuer": "https://acme.okta.com",
"client_id": "apc_01jd8k3m2v9x4q7r5t6w8y0z1a",
"scopes": [
"…"
],
"enabled": true,
"phone_sign_in_days": 30,
"phone_check_minutes": 60,
"redirect_uri": "https://acme.ext.passway.com/sign-in/callback",
"labels": {
"passway.example/cost-center": "4410",
"team": "facilities"
},
"managed_by": null,
"created_at": "2026-11-30T14:02:11Z",
"updated_at": "2026-11-30T14:02:11Z"
}
Update an identity provider
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 identity-providers:write scope.
Path parameters
- Name
identity_provider_id- Type
- string
- Description
Identity provider ID:
idp_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
issuer- Type
- string
- Description
New issuer.
- Name
client_id- Type
- string
- Description
New client ID.
- Name
scopes- Type
- array of strings
- Description
New scopes.
- Name
enabled- Type
- boolean
- Description
Enable or disable it.
- Name
phone_sign_in_days- Type
- integer
- Description
A new interval for phones to sign in again, in days.
- Name
phone_check_minutes- Type
- integer
- Description
A new interval for asking the provider about phones, in minutes; 0 turns the checks off.
- Name
labels- Type
- object
- Description
Labels to set;
nullvalues remove a label. Can benull.
- Name
managed_by- Type
- string
- Description
The tool that manages it;
nullclears it. Can benull.
Request
curl -X PATCH https://acme.ext.passway.com/v1/identity-providers/idp_01jd8k3m2v9x4q7r5t6w8y0z1a \
-H "Authorization: Bearer $PASSWAY_TOKEN" \
-H 'If-Match: "3f9a"' \
-H "Content-Type: application/merge-patch+json" \
-d '{
"labels": {
"old-label": null,
"team": "security"
}
}'
Response
{
"id": "idp_01jd8k3m2v9x4q7r5t6w8y0z1a",
"etag": "3f9a",
"name": "Okta",
"issuer": "https://acme.okta.com",
"client_id": "apc_01jd8k3m2v9x4q7r5t6w8y0z1a",
"scopes": [
"…"
],
"enabled": true,
"phone_sign_in_days": 30,
"phone_check_minutes": 60,
"redirect_uri": "https://acme.ext.passway.com/sign-in/callback",
"labels": {
"passway.example/cost-center": "4410",
"team": "facilities"
},
"managed_by": null,
"created_at": "2026-11-30T14:02:11Z",
"updated_at": "2026-11-30T14:02:11Z"
}
Delete an identity provider
Its sessions end at once.
Needs the identity-providers:write scope.
Path parameters
- Name
identity_provider_id- Type
- string
- Description
Identity provider ID:
idp_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
curl -X DELETE https://acme.ext.passway.com/v1/identity-providers/idp_01jd8k3m2v9x4q7r5t6w8y0z1a \
-H "Authorization: Bearer $PASSWAY_TOKEN" \
-H 'If-Match: "3f9a"'
Response
204 Deleted
Set an identity provider's client secret
Replaces the client secret Passway uses at the provider. It is kept sealed and never returned.
Needs the identity-providers:write scope.
Path parameters
- Name
identity_provider_id- Type
- string
- Description
Identity provider ID:
idp_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
etagstill 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 returns409withRetry-After.
Required attributes
- Name
client_secret- Type
- string
- Description
The new client secret.
Request
curl -X POST https://acme.ext.passway.com/v1/identity-providers/idp_01jd8k3m2v9x4q7r5t6w8y0z1a:set-client-secret \
-H "Authorization: Bearer $PASSWAY_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"client_secret": "…"
}'
Response
{
"id": "idp_01jd8k3m2v9x4q7r5t6w8y0z1a",
"etag": "3f9a",
"name": "Okta",
"issuer": "https://acme.okta.com",
"client_id": "apc_01jd8k3m2v9x4q7r5t6w8y0z1a",
"scopes": [
"…"
],
"enabled": true,
"phone_sign_in_days": 30,
"phone_check_minutes": 60,
"redirect_uri": "https://acme.ext.passway.com/sign-in/callback",
"labels": {
"passway.example/cost-center": "4410",
"team": "facilities"
},
"managed_by": null,
"created_at": "2026-11-30T14:02:11Z",
"updated_at": "2026-11-30T14:02:11Z"
}