Public/Get-ConnectorAuthSettings.ps1
|
function Get-ConnectorAuthSettings { [CmdletBinding()] [OutputType([System.Collections.Hashtable])] param ( [Switch] $Development, [Switch] $Internal ) if ($Internal.IsPresent) { if ($Development.IsPresent) { @{ fqdn = "dev-internal-api.byfortytwo.com" apiresource = "api://18c51ab6-2a8e-45c8-bd52-5511b04fe396/.default" } } else { @{ fqdn = "internal-api.fortytwo.io" apiresource = "https://internal-api.fortytwo.io/.default" } } } else { if ($Development.IsPresent) { @{ fqdn = "dev-api.byfortytwo.com" apiresource = "https://dev-api.byfortytwo.com/.default" } } else { @{ fqdn = "api.fortytwo.io" apiresource = "https://api.fortytwo.io/.default" } } } } |