TypeScript
import { MyOrganizationClient } from "@auth0/myorganization-js";
async function main() {
const client = new MyOrganizationClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.organization.configuration.identityProviders.get();
}
main();
import { MyOrganizationClient } from "@auth0/myorganization-js";
async function main() {
const client = new MyOrganizationClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.organization.configuration.identityProviders.get();
}
main();
package example
import (
context "context"
client "github.com/auth0/myorganization-go/v2/client"
option "github.com/auth0/myorganization-go/v2/option"
)
func do() {
c, err := client.New(
"{YOUR_DOMAIN}",
option.WithToken(
"<token>",
),
)
if err != nil {
return
}
c.Organization.Configuration.IdentityProviders.Get(
context.TODO(),
)
}
using Auth0.MyOrganizationApi;
using System.Threading.Tasks;
public partial class Examples
{
public async Task Example() {
var client = new MyOrganizationClient(new MyOrganizationClientOptions
{
Domain = "{YOUR_DOMAIN}",
TokenProvider = new DelegateTokenProvider(_ => Task.FromResult("<token>"))
});
await client.Organization.Configuration.IdentityProviders.GetAsync();
}
}
package com.example.usage;
import com.auth0.client.myorganization.auth.MyOrganizationClient;
public class Example {
public static void main(String[] args) {
MyOrganizationClient client = MyOrganizationClient
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.organization().configuration().identityProviders().get();
}
}from auth0.myorganization import MyOrganizationClient
client = MyOrganizationClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.organization.configuration.identity_providers.get()
curl --request GET \
--url https://{tenantDomain}/my-org/v1/config/identity-providers \
--header 'Authorization: Bearer <token>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{tenantDomain}/my-org/v1/config/identity-providers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://{tenantDomain}/my-org/v1/config/identity-providers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"organization": {
"can_set_show_as_button": true,
"can_set_assign_membership_on_login": false
},
"domain_aliases_config": {
"domain_verification": "optional"
},
"strategies": {
"adfs": {
"provisioning_methods": [],
"enabled_features": [],
"user_attributes": {
"email": {
"label": "Email",
"description": "Email of the user",
"is_required": true,
"sso_field": [
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"
]
},
"given_name": {
"label": "Given name",
"description": "First name of the user",
"is_required": false,
"sso_field": [
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname",
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"
]
}
}
},
"googleapps": {
"provisioning_methods": [],
"enabled_features": [],
"user_attributes": {}
},
"oidc": {
"provisioning_methods": [
"scim"
],
"enabled_features": [
"provisioning"
],
"user_attributes": {
"email": {
"label": "Email",
"description": "Email of the user",
"is_required": true,
"sso_field": [
"email"
],
"provisioning_field": "emails[primary eq true].value"
},
"given_name": {
"label": "Given name",
"description": "First name of the user",
"is_required": false,
"sso_field": [
"given_name"
],
"provisioning_field": "name.givenName"
},
"user_id": {
"label": "User ID",
"description": "User ID",
"is_required": true,
"provisioning_field": "externalId"
}
}
},
"okta": {
"provisioning_methods": [
"scim"
],
"enabled_features": [
"provisioning",
"universal_logout"
],
"user_attributes": {
"email": {
"label": "Email",
"description": "Email of the user",
"is_required": true,
"sso_field": [
"email"
],
"provisioning_field": "emails.^[primary==true].value"
},
"user_id": {
"label": "User ID",
"description": "User ID",
"is_required": true,
"provisioning_field": "externalId"
}
}
},
"pingfederate": {
"provisioning_methods": [],
"enabled_features": [],
"user_attributes": {
"email": {
"label": "Email",
"description": "Email of the user",
"is_required": true,
"sso_field": [
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"
]
}
}
},
"samlp": {
"provisioning_methods": [
"scim"
],
"enabled_features": [
"provisioning",
"universal_logout"
],
"user_attributes": {
"email": {
"label": "Email",
"description": "Email of the user",
"is_required": true,
"sso_field": [
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"
],
"provisioning_field": "emails[primary eq true].value"
},
"user_id": {
"label": "User ID",
"description": "User ID",
"is_required": true,
"provisioning_field": "externalId"
}
}
},
"waad": {
"provisioning_methods": [
"scim"
],
"enabled_features": [
"provisioning"
],
"user_attributes": {
"email": {
"label": "Email",
"description": "Email of the user",
"is_required": true,
"sso_field": [
"email"
],
"provisioning_field": "emails[primary eq true].value"
},
"given_name": {
"label": "Given name",
"description": "First name of the user",
"is_required": false,
"sso_field": [
"givenName"
],
"provisioning_field": "name.givenName"
},
"user_id": {
"label": "User ID",
"description": "User ID",
"is_required": true,
"provisioning_field": "externalId"
}
}
}
}
}{
"type": "https://auth0.com/api-errors#A0E-401-0002",
"status": 401,
"title": "Missing Token",
"detail": "No auth token provided."
}{
"type": "https://auth0.com/api-errors#A0E-403-0002",
"status": 403,
"title": "Insufficient Scope",
"detail": "The auth token lacks the required scope: Check the API documentation for the required scopes for this endpoint."
}{
"type": "https://auth0.com/api-errors#A0E-404-0002",
"status": 404,
"title": "Resource Not Found",
"detail": "The organization does not exist."
}{
"type": "https://auth0.com/api-errors#A0E-429-0003",
"status": 429,
"title": "Endpoint Rate Limit Exceeded",
"detail": "The endpoint request limit has been exceeded."
}Get Identity Provider configuration
Retrieve the Connection Profile for this application. When a User Attribute Profile is configured, each strategy also includes user_attributes: the fields an administrator must configure in their identity provider for that strategy, available before an identity provider exists. You should cache this information as it does not change frequently.
GET
/
config
/
identity-providers
TypeScript
import { MyOrganizationClient } from "@auth0/myorganization-js";
async function main() {
const client = new MyOrganizationClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.organization.configuration.identityProviders.get();
}
main();
import { MyOrganizationClient } from "@auth0/myorganization-js";
async function main() {
const client = new MyOrganizationClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.organization.configuration.identityProviders.get();
}
main();
package example
import (
context "context"
client "github.com/auth0/myorganization-go/v2/client"
option "github.com/auth0/myorganization-go/v2/option"
)
func do() {
c, err := client.New(
"{YOUR_DOMAIN}",
option.WithToken(
"<token>",
),
)
if err != nil {
return
}
c.Organization.Configuration.IdentityProviders.Get(
context.TODO(),
)
}
using Auth0.MyOrganizationApi;
using System.Threading.Tasks;
public partial class Examples
{
public async Task Example() {
var client = new MyOrganizationClient(new MyOrganizationClientOptions
{
Domain = "{YOUR_DOMAIN}",
TokenProvider = new DelegateTokenProvider(_ => Task.FromResult("<token>"))
});
await client.Organization.Configuration.IdentityProviders.GetAsync();
}
}
package com.example.usage;
import com.auth0.client.myorganization.auth.MyOrganizationClient;
public class Example {
public static void main(String[] args) {
MyOrganizationClient client = MyOrganizationClient
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.organization().configuration().identityProviders().get();
}
}from auth0.myorganization import MyOrganizationClient
client = MyOrganizationClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.organization.configuration.identity_providers.get()
curl --request GET \
--url https://{tenantDomain}/my-org/v1/config/identity-providers \
--header 'Authorization: Bearer <token>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{tenantDomain}/my-org/v1/config/identity-providers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://{tenantDomain}/my-org/v1/config/identity-providers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"organization": {
"can_set_show_as_button": true,
"can_set_assign_membership_on_login": false
},
"domain_aliases_config": {
"domain_verification": "optional"
},
"strategies": {
"adfs": {
"provisioning_methods": [],
"enabled_features": [],
"user_attributes": {
"email": {
"label": "Email",
"description": "Email of the user",
"is_required": true,
"sso_field": [
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"
]
},
"given_name": {
"label": "Given name",
"description": "First name of the user",
"is_required": false,
"sso_field": [
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname",
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"
]
}
}
},
"googleapps": {
"provisioning_methods": [],
"enabled_features": [],
"user_attributes": {}
},
"oidc": {
"provisioning_methods": [
"scim"
],
"enabled_features": [
"provisioning"
],
"user_attributes": {
"email": {
"label": "Email",
"description": "Email of the user",
"is_required": true,
"sso_field": [
"email"
],
"provisioning_field": "emails[primary eq true].value"
},
"given_name": {
"label": "Given name",
"description": "First name of the user",
"is_required": false,
"sso_field": [
"given_name"
],
"provisioning_field": "name.givenName"
},
"user_id": {
"label": "User ID",
"description": "User ID",
"is_required": true,
"provisioning_field": "externalId"
}
}
},
"okta": {
"provisioning_methods": [
"scim"
],
"enabled_features": [
"provisioning",
"universal_logout"
],
"user_attributes": {
"email": {
"label": "Email",
"description": "Email of the user",
"is_required": true,
"sso_field": [
"email"
],
"provisioning_field": "emails.^[primary==true].value"
},
"user_id": {
"label": "User ID",
"description": "User ID",
"is_required": true,
"provisioning_field": "externalId"
}
}
},
"pingfederate": {
"provisioning_methods": [],
"enabled_features": [],
"user_attributes": {
"email": {
"label": "Email",
"description": "Email of the user",
"is_required": true,
"sso_field": [
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"
]
}
}
},
"samlp": {
"provisioning_methods": [
"scim"
],
"enabled_features": [
"provisioning",
"universal_logout"
],
"user_attributes": {
"email": {
"label": "Email",
"description": "Email of the user",
"is_required": true,
"sso_field": [
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"
],
"provisioning_field": "emails[primary eq true].value"
},
"user_id": {
"label": "User ID",
"description": "User ID",
"is_required": true,
"provisioning_field": "externalId"
}
}
},
"waad": {
"provisioning_methods": [
"scim"
],
"enabled_features": [
"provisioning"
],
"user_attributes": {
"email": {
"label": "Email",
"description": "Email of the user",
"is_required": true,
"sso_field": [
"email"
],
"provisioning_field": "emails[primary eq true].value"
},
"given_name": {
"label": "Given name",
"description": "First name of the user",
"is_required": false,
"sso_field": [
"givenName"
],
"provisioning_field": "name.givenName"
},
"user_id": {
"label": "User ID",
"description": "User ID",
"is_required": true,
"provisioning_field": "externalId"
}
}
}
}
}{
"type": "https://auth0.com/api-errors#A0E-401-0002",
"status": 401,
"title": "Missing Token",
"detail": "No auth token provided."
}{
"type": "https://auth0.com/api-errors#A0E-403-0002",
"status": 403,
"title": "Insufficient Scope",
"detail": "The auth token lacks the required scope: Check the API documentation for the required scopes for this endpoint."
}{
"type": "https://auth0.com/api-errors#A0E-404-0002",
"status": 404,
"title": "Resource Not Found",
"detail": "The organization does not exist."
}{
"type": "https://auth0.com/api-errors#A0E-429-0003",
"status": 429,
"title": "Endpoint Rate Limit Exceeded",
"detail": "The endpoint request limit has been exceeded."
}Authorizations
OAuth2ClientCredentialsOAuth2AuthCode
Scopes
Response
Identity provider configuration successfully retrieved.