The client identifier for the application obtained when registering the application with the identity provider.
clientSecret
String
The client secret for the application that is obtained when the application is registered with the identity provider. This is write-only. A read operation returns ****.
displayName
String
The display name of the identity provider.
identityProviderType
String
For a B2B scenario, possible values: Google, Facebook. For a B2C scenario, possible values: Microsoft, Google, Amazon, LinkedIn, Facebook, GitHub, Twitter, Weibo, QQ, WeChat.
scope
String
Scope defines the information and permissions you are looking to gather from your custom identity provider.
appleIdentityProvider object
Property
Type
Description
displayName
String
The display name of the identity provider.
developerId
String
The Apple developer identifier.
serviceId
String
The Apple service identifier.
keyId
String
The Apple key identifier.
certificateData
String
The certificate data which is a long string of text from the certificate, can be null.
Response
If successful, this method returns a 201 Created response code and a JSON representation of a socialIdentityProvider object in the response body for an Azure AD tenant.
POST https://graph.microsoft.com/v1.0/identity/identityProviders
Content-type: application/json
{
"@odata.type": "microsoft.graph.socialIdentityProvider",
"displayName": "Login with Amazon",
"identityProviderType": "Amazon",
"clientId": "56433757-cadd-4135-8431-2c9e3fd68ae8",
"clientSecret": "000000000000"
}
// Code snippets are only available for the latest version. Current version is 5.x
var graphClient = new GraphServiceClient(requestAdapter);
var requestBody = new IdentityProviderBase
{
OdataType = "microsoft.graph.socialIdentityProvider",
DisplayName = "Login with Amazon",
AdditionalData = new Dictionary<string, object>
{
{
"identityProviderType" , "Amazon"
},
{
"clientId" , "56433757-cadd-4135-8431-2c9e3fd68ae8"
},
{
"clientSecret" , "000000000000"
},
},
};
var result = await graphClient.Identity.IdentityProviders.PostAsync(requestBody);
<?php
// THIS SNIPPET IS A PREVIEW FOR THE KIOTA BASED SDK. NON-PRODUCTION USE ONLY
$graphServiceClient = new GraphServiceClient($requestAdapter);
$requestBody = new IdentityProviderBase();
$requestBody->set@odatatype('microsoft.graph.socialIdentityProvider');
$requestBody->setDisplayName('Login with Amazon');
$additionalData = [
'identityProviderType' => 'Amazon',
'clientId' => '56433757-cadd-4135-8431-2c9e3fd68ae8',
'clientSecret' => '000000000000',
];
$requestBody->setAdditionalData($additionalData);
$result = $graphServiceClient->identity()->identityProviders()->post($requestBody);
POST https://graph.microsoft.com/v1.0/identity/identityProviders
Content-type: application/json
{
"@odata.type": "microsoft.graph.appleManagedIdentityProvider",
"displayName": "Sign in with Apple",
"developerId": "UBF8T346G9",
"serviceId": "com.microsoft.rts.b2c.test.client",
"keyId": "99P6D879C4",
"certificateData": "******"
}
// Code snippets are only available for the latest version. Current version is 5.x
var graphClient = new GraphServiceClient(requestAdapter);
var requestBody = new IdentityProviderBase
{
OdataType = "microsoft.graph.appleManagedIdentityProvider",
DisplayName = "Sign in with Apple",
AdditionalData = new Dictionary<string, object>
{
{
"developerId" , "UBF8T346G9"
},
{
"serviceId" , "com.microsoft.rts.b2c.test.client"
},
{
"keyId" , "99P6D879C4"
},
{
"certificateData" , "******"
},
},
};
var result = await graphClient.Identity.IdentityProviders.PostAsync(requestBody);
<?php
// THIS SNIPPET IS A PREVIEW FOR THE KIOTA BASED SDK. NON-PRODUCTION USE ONLY
$graphServiceClient = new GraphServiceClient($requestAdapter);
$requestBody = new IdentityProviderBase();
$requestBody->set@odatatype('microsoft.graph.appleManagedIdentityProvider');
$requestBody->setDisplayName('Sign in with Apple');
$additionalData = [
'developerId' => 'UBF8T346G9',
'serviceId' => 'com.microsoft.rts.b2c.test.client',
'keyId' => '99P6D879C4',
'certificateData' => '******',
];
$requestBody->setAdditionalData($additionalData);
$result = $graphServiceClient->identity()->identityProviders()->post($requestBody);