IdentityProviderAadb2cArgs

data class IdentityProviderAadb2cArgs(val allowedTenant: Output<String>? = null, val apiManagementName: Output<String>? = null, val authority: Output<String>? = null, val clientId: Output<String>? = null, val clientSecret: Output<String>? = null, val passwordResetPolicy: Output<String>? = null, val profileEditingPolicy: Output<String>? = null, val resourceGroupName: Output<String>? = null, val signinPolicy: Output<String>? = null, val signinTenant: Output<String>? = null, val signupPolicy: Output<String>? = null) : ConvertibleToJava<IdentityProviderAadb2cArgs>

Manages an API Management Azure AD B2C Identity Provider.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.apimanagement.Service;
import com.pulumi.azure.apimanagement.ServiceArgs;
import com.pulumi.azuread.Application;
import com.pulumi.azuread.ApplicationArgs;
import com.pulumi.azuread.ApplicationPassword;
import com.pulumi.azuread.ApplicationPasswordArgs;
import com.pulumi.azure.apimanagement.IdentityProviderAadb2c;
import com.pulumi.azure.apimanagement.IdentityProviderAadb2cArgs;
import com.pulumi.resources.CustomResourceOptions;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleService = new Service("exampleService", ServiceArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.publisherName("My Company")
.publisherEmail("company@terraform.io")
.skuName("Developer_1")
.build());
var exampleApplication = new Application("exampleApplication", ApplicationArgs.builder()
.displayName("acctestam-example")
.build());
var exampleApplicationPassword = new ApplicationPassword("exampleApplicationPassword", ApplicationPasswordArgs.builder()
.applicationObjectId(exampleApplication.objectId())
.endDateRelative("36h")
.build());
var exampleIdentityProviderAadb2c = new IdentityProviderAadb2c("exampleIdentityProviderAadb2c", IdentityProviderAadb2cArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.apiManagementName(exampleService.name())
.clientId(exampleApplication.applicationId())
.clientSecret("P@55w0rD!")
.allowedTenant("myb2ctenant.onmicrosoft.com")
.signinTenant("myb2ctenant.onmicrosoft.com")
.authority("myb2ctenant.b2clogin.com")
.signinPolicy("B2C_1_Login")
.signupPolicy("B2C_1_Signup")
.build(), CustomResourceOptions.builder()
.dependsOn(exampleApplicationPassword)
.build());
}
}

Import

API Management Azure AD B2C Identity Providers can be imported using the resource id, e.g.

$ pulumi import azure:apimanagement/identityProviderAadb2c:IdentityProviderAadb2c example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ApiManagement/service/service1/identityProviders/aadB2C

Constructors

Link copied to clipboard
fun IdentityProviderAadb2cArgs(allowedTenant: Output<String>? = null, apiManagementName: Output<String>? = null, authority: Output<String>? = null, clientId: Output<String>? = null, clientSecret: Output<String>? = null, passwordResetPolicy: Output<String>? = null, profileEditingPolicy: Output<String>? = null, resourceGroupName: Output<String>? = null, signinPolicy: Output<String>? = null, signinTenant: Output<String>? = null, signupPolicy: Output<String>? = null)

Functions

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

Properties

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

The allowed AAD tenant, usually your B2C tenant domain.

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

The Name of the API Management Service where this AAD Identity Provider should be created. Changing this forces a new resource to be created.

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

OpenID Connect discovery endpoint hostname, usually your b2clogin.com domain.

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

Client ID of the Application in your B2C tenant.

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

Client secret of the Application in your B2C tenant.

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

Password reset Policy Name.

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

Profile editing Policy Name.

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

The Name of the Resource Group where the API Management Service exists. Changing this forces a new resource to be created.

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

Signin Policy Name.

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

The tenant to use instead of Common when logging into Active Directory, usually your B2C tenant domain.

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

Signup Policy Name.