Forms Authentication
Forms authentication scripts in PowerShell Universal.
param(
[PSCredential]$Credential
)
#
# You can call whatever cmdlets you like to conduct authentication here.
# Just make sure to return the $Result with the Success property set to $true
#
if ($Credential.UserName -eq 'Admin')
{
New-PSUAuthenticationResult -Success -UserName 'Admin'
}
else
{
New-PSUAuthenticationResult -ErrorMessage 'Bad username or password'
}Setting a Password
Setting Claims
Variables
Name
Description
Type
Basic Authentication
Windows Login
Live Log
Last updated
Was this helpful?