Checks/Azure/Test-AppEnsureAuthIsSetUp.ps1

function Test-AppEnsureAuthIsSetUp {
    <#
    .SYNOPSIS
        App Service app has App Service Authentication enabled

    .DESCRIPTION
        **Azure App Service** can enforce built-in **Authentication/Authorization** (Easy Auth) so requests are authenticated by a provider before reaching app code.
        
        This evaluates whether platform auth is enabled for the app and an identity provider is configured.

    .PARAMETER Check
        CIEMCheck object containing check metadata.
    #>

    [CmdletBinding()]
    [OutputType([PSCustomObject[]])]
    param(
        [Parameter(Mandatory)]
        [CIEMCheck]$Check
    )

    $ErrorActionPreference = 'Stop'

    # TODO: Implement check logic based on Prowler check: app_ensure_auth_is_set_up

    [CIEMScanResult]::Create($Check, 'MANUAL', 'This check requires manual implementation. See Prowler check app_ensure_auth_is_set_up for reference.', 'N/A', 'app Resources')
}