description | ms.date | ms.topic | title |
---|---|---|---|
Avoid sending credentials and secrets over unencrypted connections |
02/28/2024 |
reference |
AvoidUsingAllowUnencryptedAuthentication |
Severity Level: Warning
Avoid using the AllowUnencryptedAuthentication parameter of Invoke-WebRequest
and
Invoke-RestMethod
. When using this parameter, the cmdlets send credentials and secrets over
unencrypted connections. This should be avoided except for compatibility with legacy systems.
For more details, see Invoke-RestMethod.
Avoid using the AllowUnencryptedAuthentication parameter.
Invoke-WebRequest foo -AllowUnencryptedAuthentication
Invoke-WebRequest foo