-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Disallow Basic Auth over HTTP on Unix #6787
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
Conversation
| <value>{0} authentication requires an explicit user name and password. Specify the user name and password by using the -Credential parameter and try the command again.</value> | ||
| </data> | ||
| <data name="BasicAuthOverHttpNotSupported"> | ||
| <value>Basic authentication is not supported over HTTP on Unix</value> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing . after Unix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
| } | ||
| catch | ||
| { | ||
| $_.Exception | Should -BeOfType [System.Management.Automation.Remoting.PSRemotingTransportException] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use
$ex = { ... } | Should -Throw -PassThrou "FullyQualifiedErrorId"
$ex.Exception ...There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
|
This is a user-facing change. Please file a doc issue in PowerShell-Docs |
|
Doc issue file: MicrosoftDocs/PowerShell-Docs#2394 |
PR Summary
Disallow Basic Auth over HTTP on Unix
Fix: #6779
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:to the beginning of the title and remove the prefix when the PR is ready.[feature]if the change is significant or affects feature tests