-
-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authentication: Basic AD Auth with -ASCredential "parameter Cannot validate argument on parameter 'Provider'." #1030
Comments
Hi @RichardWrinkle, If you remove It should technically work though, so does need fixing. |
@Badgerati - I am trying to automate a PS Script on a local machine where a user runs the script and it runs some functions that ultimately submits a request to Pode. If I was able to capture a PSCredential object when they run the script and then this could be passed to Pode for auth in the Invoke-RestMethod command. This may be possible in a different way, but I'm pretty new to Pode so I'm just trying to figure things out. Thanks! |
Hi @RichardWrinkle, You're first idea of setting the Authorization |
You're correct, it would be a breaking change. I've got a note written down for v3.0 to make the default be PSCredential for all auth types. |
Hello,
When I enable the parameter "-AsCredential" on the New-PodeAuthScheme cmdlet, I get an error response that says the following:
Steps To Reproduce
Server Side Config:
Client Side Request:
I have tried two methods
1.) The first where I create the header with the PSCredential object:
2.) Where I just add the credential as a "-Credential" parameter to the Invoke-RestMethod cmdlet:
Expected Behavior
User authentication should work with the provided PSCredential object and I get a response back with status code 200.
Platform
OS: Windows 10
Browser: [e.g. Chrome, Safari] N/A
Versions:
Pode: [e.g. Pode v1.7.3] 2.7.2
PowerShell: [e.g. PS6.2.1] 7.3.0
The text was updated successfully, but these errors were encountered: