Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$AuthenticationType = New-Object ($ns + ".AuthenticationType")
$callResult = New-Object ($ns + ".CallResult")
$authenticationRequestId = $null
[bool] $requireUserMatch = $true
$initiatingAuthenticationType ="pfsdk"
$result = $proxy.PfAuthUser_4([string]$mfauser,[object] $initiatingAuthenticationType, [string] "192.168.20.6", [string] "Test Script", [bool] $requireUserMatch, [ref] $callResult, [ref] $authenticationRequestId, [ref]$errorcode)
Write-Host "MFA Call Result Code: " $callResult.Code
Write-Host "MFA Call Result Description: " $callResult.Description
Write-Host "MFA AuthN Request ID: " $authenticationRequestId
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.