WebAuthenticationType Enum

Definition

The valid values for the -Authentication parameter for Invoke-RestMethod and Invoke-WebRequest.

C#
public enum WebAuthenticationType
Inheritance
WebAuthenticationType

Fields

Name Value Description
None 0

No authentication. Default.

Basic 1

RFC-7617 Basic Authentication. Requires -Credential.

Bearer 2

RFC-6750 OAuth 2.0 Bearer Authentication. Requires -Token.

OAuth 3

RFC-6750 OAuth 2.0 Bearer Authentication. Requires -Token.

Applies to

Produto Versións
PowerShell SDK 7.2.0, 7.3.0, 7.4.0