Passer au contenu principal
GET
/
identity-providers
/
{idp_id}
TypeScript
import { MyOrganizationClient } from "github.com/auth0/myorganization-js";

async function main() {
    const client = new MyOrganizationClient({
        token: "<token>",
    });
    await client.organization.identityProviders.get("idp_id");
}
main();
{ "id": "con_zW1UHutvkVWSWdCC", "name": "oidcIdp", "display_name": "OIDC IdP", "strategy": "oidc", "show_as_button": true, "assign_membership_on_login": false, "access_level": "readonly", "domains": [ "mydomain.com" ], "is_enabled": true, "options": { "type": "front_channel", "client_id": "a8f3b2e7-5d1c-4f9a-8b0d-2e1c3a5b6f7d", "discovery_url": "https://{yourDomain}/.well-known/openid-configuration" }, "attributes": [ { "sso_field": [ "userName" ], "user_attribute": "preferred_username", "description": "Preferred Username", "label": "Preferred username", "is_required": true, "is_extra": false, "is_missing": false }, { "sso_field": [ "externalId" ], "user_attribute": "external_id", "is_required": true, "is_extra": true, "is_missing": false } ] }

Autorisations

Authorization
string
header
requis

The access token received from the authorization server in the OAuth 2.0 flow.

Paramètres de chemin

idp_id
string
requis

Identity provider identifier.

Pattern: ^con_[A-Za-z0-9]{16}$

Réponse

Identity provider successfully retrieved.

Identity provider specific options.

strategy
enum<string>
requis

The type of the identity provider

Options disponibles:
adfs,
google-apps,
oidc,
okta,
pingfederate,
samlp,
waad
Allowed value: "adfs"
options
adfs_server · object
requis

Identity provider specific options.

id
string

Identity provider identifier.

Pattern: ^con_[A-Za-z0-9]{16}$
name
string | null

The name of the identity provider

Maximum string length: 128
domains
string[]

List of domains for Home Realm Discovery (HRD)

display_name
string

Identity provider name used on the login screen.

Required string length: 1 - 128
show_as_button
boolean

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by Home Realm Discovery (HRD).

assign_membership_on_login
boolean

If true, the user will be made a member of the organization upon login.

is_enabled
boolean

True if the identity provider is enabled for the organization.

access_level
enum<string>
Options disponibles:
none,
readonly,
limited,
full