IdentityProviderArgs

data class IdentityProviderArgs(val allowedTenants: Output<List<String>>? = null, val authority: Output<String>? = null, val clientId: Output<String>? = null, val clientLibrary: Output<String>? = null, val clientSecret: Output<String>? = null, val identityProviderName: Output<String>? = null, val passwordResetPolicyName: Output<String>? = null, val profileEditingPolicyName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val serviceName: Output<String>? = null, val signinPolicyName: Output<String>? = null, val signinTenant: Output<String>? = null, val signupPolicyName: Output<String>? = null, val type: Output<Either<String, IdentityProviderType>>? = null) : ConvertibleToJava<IdentityProviderArgs>

Identity Provider details. Uses Azure REST API version 2022-09-01-preview. In version 2.x of the Azure Native provider, it used API version 2022-08-01. Other available API versions: 2021-04-01-preview, 2021-08-01, 2021-12-01-preview, 2022-04-01-preview, 2022-08-01, 2023-03-01-preview, 2023-05-01-preview, 2023-09-01-preview, 2024-05-01, 2024-06-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native apimanagement [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

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/v2"
"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

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:apimanagement:IdentityProvider Facebook /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}

Constructors

Link copied to clipboard
constructor(allowedTenants: Output<List<String>>? = null, authority: Output<String>? = null, clientId: Output<String>? = null, clientLibrary: Output<String>? = null, clientSecret: Output<String>? = null, identityProviderName: Output<String>? = null, passwordResetPolicyName: Output<String>? = null, profileEditingPolicyName: Output<String>? = null, resourceGroupName: Output<String>? = null, serviceName: Output<String>? = null, signinPolicyName: Output<String>? = null, signinTenant: Output<String>? = null, signupPolicyName: Output<String>? = null, type: Output<Either<String, IdentityProviderType>>? = null)

Properties

Link copied to clipboard
val allowedTenants: Output<List<String>>? = null

List of Allowed Tenants when configuring Azure Active Directory login.

Link copied to clipboard
val authority: Output<String>? = null

OpenID Connect discovery endpoint hostname for AAD or AAD B2C.

Link copied to clipboard
val clientId: Output<String>? = null

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.

Link copied to clipboard
val clientLibrary: Output<String>? = null

The client library to be used in the developer portal. Only applies to AAD and AAD B2C Identity Provider.

Link copied to clipboard
val clientSecret: Output<String>? = null

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.

Link copied to clipboard
val identityProviderName: Output<String>? = null

Identity Provider Type identifier.

Link copied to clipboard
val passwordResetPolicyName: Output<String>? = null

Password Reset Policy Name. Only applies to AAD B2C Identity Provider.

Link copied to clipboard
val profileEditingPolicyName: Output<String>? = null

Profile Editing Policy Name. Only applies to AAD B2C Identity Provider.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val serviceName: Output<String>? = null

The name of the API Management service.

Link copied to clipboard
val signinPolicyName: Output<String>? = null

Signin Policy Name. Only applies to AAD B2C Identity Provider.

Link copied to clipboard
val signinTenant: Output<String>? = null

The TenantId to use instead of Common when logging into Active Directory

Link copied to clipboard
val signupPolicyName: Output<String>? = null

Signup Policy Name. Only applies to AAD B2C Identity Provider.

Link copied to clipboard
val type: Output<Either<String, IdentityProviderType>>? = null

Identity Provider Type identifier.

Functions

Link copied to clipboard
open override fun toJava(): IdentityProviderArgs