IdentityProviderAadb2c

class IdentityProviderAadb2c : KotlinCustomResource

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

Properties

Link copied to clipboard
val allowedTenant: Output<String>

The allowed AAD tenant, usually your B2C tenant domain.

Link copied to clipboard

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>

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

Link copied to clipboard
val clientId: Output<String>

Client ID of the Application in your B2C tenant.

Link copied to clipboard
val clientSecret: Output<String>

Client secret of the Application in your B2C tenant.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

Password reset Policy Name.

Link copied to clipboard

Profile editing Policy Name.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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>

Signin Policy Name.

Link copied to clipboard
val signinTenant: Output<String>

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>

Signup Policy Name.

Link copied to clipboard
val urn: Output<String>