Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

WebAuthenticationType Enum

Definition

Namespace:
Microsoft.PowerShell.Commands
Assembly:
Microsoft.PowerShell.Commands.Utility.dll
Package:
Microsoft.PowerShell.Commands.Utility v7.4.15
Package:
Microsoft.PowerShell.Commands.Utility v7.5.6
Package:
Microsoft.PowerShell.Commands.Utility v7.6.1

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

public enum WebAuthenticationType
type WebAuthenticationType = 
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