All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.appservice.kotlin.outputs.LinuxWebAppAuthSettingsV2ActiveDirectoryV2.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.appservice.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map

/**
 *
 * @property allowedApplications The list of allowed Applications for the Default Authorisation Policy.
 * @property allowedAudiences Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
 * > **NOTE:** This is configured on the Authentication Provider side and is Read Only here.
 * @property allowedGroups The list of allowed Group Names for the Default Authorisation Policy.
 * @property allowedIdentities The list of allowed Identities for the Default Authorisation Policy.
 * @property clientId The ID of the Client to use to authenticate with Azure Active Directory.
 * @property clientSecretCertificateThumbprint The thumbprint of the certificate used for signing purposes.
 * @property clientSecretSettingName The App Setting name that contains the client secret of the Client.
 * !> **NOTE:** A setting with this name must exist in `app_settings` to function correctly.
 * @property jwtAllowedClientApplications A list of Allowed Client Applications in the JWT Claim.
 * @property jwtAllowedGroups A list of Allowed Groups in the JWT Claim.
 * @property loginParameters A map of key-value pairs to send to the Authorisation Endpoint when a user logs in.
 * @property tenantAuthEndpoint The Azure Tenant Endpoint for the Authenticating Tenant. e.g. `https://login.microsoftonline.com/{tenant-guid}/v2.0/`
 * > **NOTE:** [Here](https://learn.microsoft.com/en-us/entra/identity-platform/authentication-national-cloud#microsoft-entra-authentication-endpoints) is a list of possible authentication endpoints based on the cloud environment. [Here](https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-provider-aad?tabs=workforce-tenant) is more information to better understand how to configure authentication for Azure App Service or Azure Functions.
 * @property wwwAuthenticationDisabled Should the www-authenticate provider should be omitted from the request? Defaults to `false`.
 */
public data class LinuxWebAppAuthSettingsV2ActiveDirectoryV2(
    public val allowedApplications: List? = null,
    public val allowedAudiences: List? = null,
    public val allowedGroups: List? = null,
    public val allowedIdentities: List? = null,
    public val clientId: String,
    public val clientSecretCertificateThumbprint: String? = null,
    public val clientSecretSettingName: String? = null,
    public val jwtAllowedClientApplications: List? = null,
    public val jwtAllowedGroups: List? = null,
    public val loginParameters: Map? = null,
    public val tenantAuthEndpoint: String,
    public val wwwAuthenticationDisabled: Boolean? = null,
) {
    public companion object {
        public
        fun toKotlin(javaType: com.pulumi.azure.appservice.outputs.LinuxWebAppAuthSettingsV2ActiveDirectoryV2):
            LinuxWebAppAuthSettingsV2ActiveDirectoryV2 = LinuxWebAppAuthSettingsV2ActiveDirectoryV2(
            allowedApplications = javaType.allowedApplications().map({ args0 -> args0 }),
            allowedAudiences = javaType.allowedAudiences().map({ args0 -> args0 }),
            allowedGroups = javaType.allowedGroups().map({ args0 -> args0 }),
            allowedIdentities = javaType.allowedIdentities().map({ args0 -> args0 }),
            clientId = javaType.clientId(),
            clientSecretCertificateThumbprint = javaType.clientSecretCertificateThumbprint().map({ args0 ->
                args0
            }).orElse(null),
            clientSecretSettingName = javaType.clientSecretSettingName().map({ args0 -> args0 }).orElse(null),
            jwtAllowedClientApplications = javaType.jwtAllowedClientApplications().map({ args0 -> args0 }),
            jwtAllowedGroups = javaType.jwtAllowedGroups().map({ args0 -> args0 }),
            loginParameters = javaType.loginParameters().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            tenantAuthEndpoint = javaType.tenantAuthEndpoint(),
            wwwAuthenticationDisabled = javaType.wwwAuthenticationDisabled().map({ args0 ->
                args0
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy