Account linking
Get the instance's account-linking settings: what a first sign-in through a social or enterprise connection does when its email already belongs to an account. An instance that never saved them links by the defaults, both settings on. Linking always needs the address verified on both sides, by a provider trusted to vouch for it and on the account; no setting turns that off.
x-pontive-instance-id<token>Instance ID for the request
OK
application/json- response
allow_manual_linking?booleanAllowManualLinking lets a signed-in user link a provider account to themselves, POST /v1/me/external-identities. Off, starting a link is refused 403 permission_denied. Default true.
auto_link_by_email?booleanAutoLinkByEmail links a first provider sign-in to the account with the same email when the provider vouches for the address and the account has verified it. Off, every such sign-in is refused 409 auth_provider_link_required. Default true.
object?stringupdated_at?stringUpdatedAt is null until the settings are first saved.
curl -X GET 'https://api.us.pontive.com/v1/authn/account-linking-config'{ "allow_manual_linking": true, "auto_link_by_email": true, "object": "string", "updated_at": "string"}Patch the instance's account-linking settings. Omitted fields are left unchanged. auto_link_by_email off refuses every first provider sign-in whose email belongs to an existing account with 409 auth_provider_link_required; allow_manual_linking off refuses a signed-in user starting a link through POST /v1/me/external-identities.
x-pontive-instance-id<token>Instance ID for the request
If-Match?stringThe ETag the document was read with: a stale one is refused 412 precondition_failed (D42)
Update payload
application/json- body
Update payload
allow_manual_linking?booleanauto_link_by_email?booleanOK
application/json- response
allow_manual_linking?booleanAllowManualLinking lets a signed-in user link a provider account to themselves, POST /v1/me/external-identities. Off, starting a link is refused 403 permission_denied. Default true.
auto_link_by_email?booleanAutoLinkByEmail links a first provider sign-in to the account with the same email when the provider vouches for the address and the account has verified it. Off, every such sign-in is refused 409 auth_provider_link_required. Default true.
object?stringupdated_at?stringUpdatedAt is null until the settings are first saved.
curl -X PATCH 'https://api.us.pontive.com/v1/authn/account-linking-config' \ -H 'Content-Type: application/json' \ -d '{}'{ "allow_manual_linking": true, "auto_link_by_email": true, "object": "string", "updated_at": "string"}