Skip to content

sys.external_authentication

A system view that returns information about the external authentication objects in the instance. External authentication objects are used to configure access to extermal identity providers (IDPs) when configuring single sign-on (SSO). See also Single Sign-On and CREATE EXTERNAL AUTHENTICATION.

Column NameData TypeDescription
idoidIdentity of the external authentication record
namenameName of the external authentication record
owner_idoidOwner of this external authentication record
is_enabledbooleanThis external authentication record is enabled or not
issuertextIssuer to match for token signature validation and for public key discovery using JWKS if public_key is not specified
is_user_auto_createbooleanAuto create the mapped db user if it doesn't exist
user_mapping_claimnameClaim key whose value in the jwt maps to the db user, or is used to create user if is_user_auto_create is set
audiences_claimtext[1]Array of possible audience claim values in the jwt. One must match for authentication to proceed. Scaling consideration: Limited to 5000 strings
roles_grantedtext[1]Array of role names to grant user if is_user_auto_create is set, and user is created during login. Scaling consideration: Limited to 5000 names
role_grant_claimnameClaim key whose value in the jwt contains a json array of grant roles
roles_allowed_logintext[1]Array of role name to allow login if found in jwt. See role_grant_claim. Scaling consideration: Limited to 5000 role names
roles_disallowed_logintext[1]Array of role names to disallow login if found in jwt. See role_grant_claim. Scaling consideration: Limited to 5000 role names
azp_claimnameAuthorized party value that is expected to be found in a valid jwt
public_keytextPermanent public key. Set this to the public key of the issuer signing authority for tokens if the JWKS endpoint is not available as specified by issuer.
is_disable_trustbooleanDisable TLS trust verification between PG and JWKS endpoint disabled or not.