src/Utilities/Get-XrmAuthTypes.ps1
|
<# .SYNOPSIS Retrieve authentication type names. .DESCRIPTION Get available authentication types. .OUTPUTS System.String. One authentication type name per item: Office365, OAuth, AD, Ifd, ClientSecret. .EXAMPLE if ((Get-XrmAuthTypes) -notcontains $authType) { throw "Unsupported authentication type: $authType"; } .LINK https://github.com/AymericM78/PowerDataOps/blob/main/documentation/commands/Get-XrmAuthTypes.md #> function Get-XrmAuthTypes { [CmdletBinding()] [OutputType([String])] param ( ) begin { $StopWatch = [System.Diagnostics.Stopwatch]::StartNew(); Trace-XrmFunction -Name $MyInvocation.MyCommand.Name -Stage Start -Parameters ($MyInvocation.MyCommand.Parameters); } process { "Office365", "OAuth", "AD", "Ifd", "ClientSecret"; } end { $StopWatch.Stop(); Trace-XrmFunction -Name $MyInvocation.MyCommand.Name -Stage Stop -StopWatch $StopWatch; } } Export-ModuleMember -Function Get-XrmAuthTypes -Alias *; |