azure-native.apimanagement.IdentityProvider
Explore with Pulumi AI
Identity Provider details. API Version: 2020-12-01.
Example Usage
ApiManagementCreateIdentityProvider
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var identityProvider = new AzureNative.ApiManagement.IdentityProvider("identityProvider", new()
{
ClientId = "facebookid",
ClientSecret = "facebookapplicationsecret",
IdentityProviderName = "facebook",
ResourceGroupName = "rg1",
ServiceName = "apimService1",
});
});
package main
import (
apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apimanagement.NewIdentityProvider(ctx, "identityProvider", &apimanagement.IdentityProviderArgs{
ClientId: pulumi.String("facebookid"),
ClientSecret: pulumi.String("facebookapplicationsecret"),
IdentityProviderName: pulumi.String("facebook"),
ResourceGroupName: pulumi.String("rg1"),
ServiceName: pulumi.String("apimService1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.apimanagement.IdentityProvider;
import com.pulumi.azurenative.apimanagement.IdentityProviderArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var identityProvider = new IdentityProvider("identityProvider", IdentityProviderArgs.builder()
.clientId("facebookid")
.clientSecret("facebookapplicationsecret")
.identityProviderName("facebook")
.resourceGroupName("rg1")
.serviceName("apimService1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
identity_provider = azure_native.apimanagement.IdentityProvider("identityProvider",
client_id="facebookid",
client_secret="facebookapplicationsecret",
identity_provider_name="facebook",
resource_group_name="rg1",
service_name="apimService1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const identityProvider = new azure_native.apimanagement.IdentityProvider("identityProvider", {
clientId: "facebookid",
clientSecret: "facebookapplicationsecret",
identityProviderName: "facebook",
resourceGroupName: "rg1",
serviceName: "apimService1",
});
resources:
identityProvider:
type: azure-native:apimanagement:IdentityProvider
properties:
clientId: facebookid
clientSecret: facebookapplicationsecret
identityProviderName: facebook
resourceGroupName: rg1
serviceName: apimService1
Create IdentityProvider Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IdentityProvider(name: string, args: IdentityProviderArgs, opts?: CustomResourceOptions);
@overload
def IdentityProvider(resource_name: str,
args: IdentityProviderArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IdentityProvider(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
service_name: Optional[str] = None,
client_id: Optional[str] = None,
client_secret: Optional[str] = None,
profile_editing_policy_name: Optional[str] = None,
password_reset_policy_name: Optional[str] = None,
allowed_tenants: Optional[Sequence[str]] = None,
identity_provider_name: Optional[str] = None,
authority: Optional[str] = None,
signin_policy_name: Optional[str] = None,
signin_tenant: Optional[str] = None,
signup_policy_name: Optional[str] = None,
type: Optional[Union[str, IdentityProviderType]] = None)
func NewIdentityProvider(ctx *Context, name string, args IdentityProviderArgs, opts ...ResourceOption) (*IdentityProvider, error)
public IdentityProvider(string name, IdentityProviderArgs args, CustomResourceOptions? opts = null)
public IdentityProvider(String name, IdentityProviderArgs args)
public IdentityProvider(String name, IdentityProviderArgs args, CustomResourceOptions options)
type: azure-native:apimanagement:IdentityProvider
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args IdentityProviderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args IdentityProviderArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args IdentityProviderArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IdentityProviderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IdentityProviderArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var identityProviderResource = new AzureNative.Apimanagement.IdentityProvider("identityProviderResource", new()
{
ResourceGroupName = "string",
ServiceName = "string",
ClientId = "string",
ClientSecret = "string",
ProfileEditingPolicyName = "string",
PasswordResetPolicyName = "string",
AllowedTenants = new[]
{
"string",
},
IdentityProviderName = "string",
Authority = "string",
SigninPolicyName = "string",
SigninTenant = "string",
SignupPolicyName = "string",
Type = "string",
});
example, err := apimanagement.NewIdentityProvider(ctx, "identityProviderResource", &apimanagement.IdentityProviderArgs{
ResourceGroupName: "string",
ServiceName: "string",
ClientId: "string",
ClientSecret: "string",
ProfileEditingPolicyName: "string",
PasswordResetPolicyName: "string",
AllowedTenants: []string{
"string",
},
IdentityProviderName: "string",
Authority: "string",
SigninPolicyName: "string",
SigninTenant: "string",
SignupPolicyName: "string",
Type: "string",
})
var identityProviderResource = new IdentityProvider("identityProviderResource", IdentityProviderArgs.builder()
.resourceGroupName("string")
.serviceName("string")
.clientId("string")
.clientSecret("string")
.profileEditingPolicyName("string")
.passwordResetPolicyName("string")
.allowedTenants("string")
.identityProviderName("string")
.authority("string")
.signinPolicyName("string")
.signinTenant("string")
.signupPolicyName("string")
.type("string")
.build());
identity_provider_resource = azure_native.apimanagement.IdentityProvider("identityProviderResource",
resource_group_name=string,
service_name=string,
client_id=string,
client_secret=string,
profile_editing_policy_name=string,
password_reset_policy_name=string,
allowed_tenants=[string],
identity_provider_name=string,
authority=string,
signin_policy_name=string,
signin_tenant=string,
signup_policy_name=string,
type=string)
const identityProviderResource = new azure_native.apimanagement.IdentityProvider("identityProviderResource", {
resourceGroupName: "string",
serviceName: "string",
clientId: "string",
clientSecret: "string",
profileEditingPolicyName: "string",
passwordResetPolicyName: "string",
allowedTenants: ["string"],
identityProviderName: "string",
authority: "string",
signinPolicyName: "string",
signinTenant: "string",
signupPolicyName: "string",
type: "string",
});
type: azure-native:apimanagement:IdentityProvider
properties:
allowedTenants:
- string
authority: string
clientId: string
clientSecret: string
identityProviderName: string
passwordResetPolicyName: string
profileEditingPolicyName: string
resourceGroupName: string
serviceName: string
signinPolicyName: string
signinTenant: string
signupPolicyName: string
type: string
IdentityProvider Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The IdentityProvider resource accepts the following input properties:
- Client
Id string - Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft.
- Client
Secret string - Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.
- Resource
Group stringName - The name of the resource group.
- Service
Name string - The name of the API Management service.
- Allowed
Tenants List<string> - List of Allowed Tenants when configuring Azure Active Directory login.
- string
- OpenID Connect discovery endpoint hostname for AAD or AAD B2C.
- Identity
Provider stringName - Identity Provider Type identifier.
- Password
Reset stringPolicy Name - Password Reset Policy Name. Only applies to AAD B2C Identity Provider.
- Profile
Editing stringPolicy Name - Profile Editing Policy Name. Only applies to AAD B2C Identity Provider.
- Signin
Policy stringName - Signin Policy Name. Only applies to AAD B2C Identity Provider.
- Signin
Tenant string - The TenantId to use instead of Common when logging into Active Directory
- Signup
Policy stringName - Signup Policy Name. Only applies to AAD B2C Identity Provider.
- Type
string | Pulumi.
Azure Native. Api Management. Identity Provider Type - Identity Provider Type identifier.
- Client
Id string - Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft.
- Client
Secret string - Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.
- Resource
Group stringName - The name of the resource group.
- Service
Name string - The name of the API Management service.
- Allowed
Tenants []string - List of Allowed Tenants when configuring Azure Active Directory login.
- string
- OpenID Connect discovery endpoint hostname for AAD or AAD B2C.
- Identity
Provider stringName - Identity Provider Type identifier.
- Password
Reset stringPolicy Name - Password Reset Policy Name. Only applies to AAD B2C Identity Provider.
- Profile
Editing stringPolicy Name - Profile Editing Policy Name. Only applies to AAD B2C Identity Provider.
- Signin
Policy stringName - Signin Policy Name. Only applies to AAD B2C Identity Provider.
- Signin
Tenant string - The TenantId to use instead of Common when logging into Active Directory
- Signup
Policy stringName - Signup Policy Name. Only applies to AAD B2C Identity Provider.
- Type
string | Identity
Provider Type - Identity Provider Type identifier.
- client
Id String - Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft.
- client
Secret String - Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.
- resource
Group StringName - The name of the resource group.
- service
Name String - The name of the API Management service.
- allowed
Tenants List<String> - List of Allowed Tenants when configuring Azure Active Directory login.
- String
- OpenID Connect discovery endpoint hostname for AAD or AAD B2C.
- identity
Provider StringName - Identity Provider Type identifier.
- password
Reset StringPolicy Name - Password Reset Policy Name. Only applies to AAD B2C Identity Provider.
- profile
Editing StringPolicy Name - Profile Editing Policy Name. Only applies to AAD B2C Identity Provider.
- signin
Policy StringName - Signin Policy Name. Only applies to AAD B2C Identity Provider.
- signin
Tenant String - The TenantId to use instead of Common when logging into Active Directory
- signup
Policy StringName - Signup Policy Name. Only applies to AAD B2C Identity Provider.
- type
String | Identity
Provider Type - Identity Provider Type identifier.
- client
Id string - Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft.
- client
Secret string - Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.
- resource
Group stringName - The name of the resource group.
- service
Name string - The name of the API Management service.
- allowed
Tenants string[] - List of Allowed Tenants when configuring Azure Active Directory login.
- string
- OpenID Connect discovery endpoint hostname for AAD or AAD B2C.
- identity
Provider stringName - Identity Provider Type identifier.
- password
Reset stringPolicy Name - Password Reset Policy Name. Only applies to AAD B2C Identity Provider.
- profile
Editing stringPolicy Name - Profile Editing Policy Name. Only applies to AAD B2C Identity Provider.
- signin
Policy stringName - Signin Policy Name. Only applies to AAD B2C Identity Provider.
- signin
Tenant string - The TenantId to use instead of Common when logging into Active Directory
- signup
Policy stringName - Signup Policy Name. Only applies to AAD B2C Identity Provider.
- type
string | Identity
Provider Type - Identity Provider Type identifier.
- client_
id str - Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft.
- client_
secret str - Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.
- resource_
group_ strname - The name of the resource group.
- service_
name str - The name of the API Management service.
- allowed_
tenants Sequence[str] - List of Allowed Tenants when configuring Azure Active Directory login.
- str
- OpenID Connect discovery endpoint hostname for AAD or AAD B2C.
- identity_
provider_ strname - Identity Provider Type identifier.
- password_
reset_ strpolicy_ name - Password Reset Policy Name. Only applies to AAD B2C Identity Provider.
- profile_
editing_ strpolicy_ name - Profile Editing Policy Name. Only applies to AAD B2C Identity Provider.
- signin_
policy_ strname - Signin Policy Name. Only applies to AAD B2C Identity Provider.
- signin_
tenant str - The TenantId to use instead of Common when logging into Active Directory
- signup_
policy_ strname - Signup Policy Name. Only applies to AAD B2C Identity Provider.
- type
str | Identity
Provider Type - Identity Provider Type identifier.
- client
Id String - Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft.
- client
Secret String - Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.
- resource
Group StringName - The name of the resource group.
- service
Name String - The name of the API Management service.
- allowed
Tenants List<String> - List of Allowed Tenants when configuring Azure Active Directory login.
- String
- OpenID Connect discovery endpoint hostname for AAD or AAD B2C.
- identity
Provider StringName - Identity Provider Type identifier.
- password
Reset StringPolicy Name - Password Reset Policy Name. Only applies to AAD B2C Identity Provider.
- profile
Editing StringPolicy Name - Profile Editing Policy Name. Only applies to AAD B2C Identity Provider.
- signin
Policy StringName - Signin Policy Name. Only applies to AAD B2C Identity Provider.
- signin
Tenant String - The TenantId to use instead of Common when logging into Active Directory
- signup
Policy StringName - Signup Policy Name. Only applies to AAD B2C Identity Provider.
- type
String | "facebook" | "google" | "microsoft" | "twitter" | "aad" | "aad
B2C" - Identity Provider Type identifier.
Outputs
All input properties are implicitly available as output properties. Additionally, the IdentityProvider resource produces the following output properties:
Supporting Types
IdentityProviderType, IdentityProviderTypeArgs
- facebookFacebook as Identity provider.
- googleGoogle as Identity provider.
- Microsoft
- microsoftMicrosoft Live as Identity provider.
- twitterTwitter as Identity provider.
- Aad
- aadAzure Active Directory as Identity provider.
- Aad
B2C - aadB2CAzure Active Directory B2C as Identity provider.
- Identity
Provider Type Facebook - facebookFacebook as Identity provider.
- Identity
Provider Type Google - googleGoogle as Identity provider.
- Identity
Provider Type Microsoft - microsoftMicrosoft Live as Identity provider.
- Identity
Provider Type Twitter - twitterTwitter as Identity provider.
- Identity
Provider Type Aad - aadAzure Active Directory as Identity provider.
- Identity
Provider Type Aad B2C - aadB2CAzure Active Directory B2C as Identity provider.
- facebookFacebook as Identity provider.
- googleGoogle as Identity provider.
- Microsoft
- microsoftMicrosoft Live as Identity provider.
- twitterTwitter as Identity provider.
- Aad
- aadAzure Active Directory as Identity provider.
- Aad
B2C - aadB2CAzure Active Directory B2C as Identity provider.
- facebookFacebook as Identity provider.
- googleGoogle as Identity provider.
- Microsoft
- microsoftMicrosoft Live as Identity provider.
- twitterTwitter as Identity provider.
- Aad
- aadAzure Active Directory as Identity provider.
- Aad
B2C - aadB2CAzure Active Directory B2C as Identity provider.
- facebookFacebook as Identity provider.
- googleGoogle as Identity provider.
- MICROSOFT
- microsoftMicrosoft Live as Identity provider.
- twitterTwitter as Identity provider.
- AAD
- aadAzure Active Directory as Identity provider.
- AAD_B2_C
- aadB2CAzure Active Directory B2C as Identity provider.
- "facebook"
- facebookFacebook as Identity provider.
- "google"
- googleGoogle as Identity provider.
- "microsoft"
- microsoftMicrosoft Live as Identity provider.
- "twitter"
- twitterTwitter as Identity provider.
- "aad"
- aadAzure Active Directory as Identity provider.
- "aad
B2C" - aadB2CAzure Active Directory B2C as Identity provider.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:apimanagement:IdentityProvider Facebook /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/identityProviders/Facebook
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0