Public/Get-P1WebSecurity.ps1

function Get-P1WebSecurity {
    <#
    .Synopsis
    Get the PlannerOne web security for tenant.
 
    .Description
    Get the PlannerOne web security for tenant.
 
    .Parameter Tenant
    The tenant name.
 
    #>

    [cmdletbinding()]
    param( 
        [Parameter(Mandatory=$true)]
        [string] $Tenant
    )
    Process
    {
        if (!(Test-Tenant $Tenant)) {
            Write-Warning "Tenant $Tenant does not exist."
            Write-Warning "Operation canceled."
            return
        }

        $ssl = Get-SSLConf $Tenant
        if ($ssl -eq $null) {
                $ssl = "false"
        }

        Write-Output "SSL: $ssl"
        $authentication = Get-AuthenticationConf $Tenant
        if ($authentication -eq $null) {
                $authentication = "Windows"
        }

        Write-Output "Authentication: $authentication"
    }
}