IAuthHandler.ValidatePowerShellAsync method

Authenticates the user using PowerShell script. This method is used to validate the username and password against a PowerShell script.

public static ValueTask<bool> ValidatePowerShellAsync(string? code, HttpContext context, 
    Dictionary<string, string> credentials, ILogger logger)
parameter description
code The PowerShell script code used for authentication.
context The HTTP context.
credentials A dictionary containing the credentials to validate (e.g., username and password).
logger The logger instance.

Return Value

A task representing the asynchronous operation.

Exceptions

exception condition
InvalidOperationException  

See Also