Sdílet prostřednictvím


HttpBearerChallenge.IsBearerChallenge(String) Method

Definition

Tests whether an authentication header is a Bearer challenge

public static bool IsBearerChallenge (string challenge);
static member IsBearerChallenge : string -> bool
Public Shared Function IsBearerChallenge (challenge As String) As Boolean

Parameters

challenge
String

The AuthenticationHeaderValue to test

Returns

True if the header is a Bearer challenge

Remarks

This method is forgiving: if the parameter is null, or the scheme in the header is missing, then it will simply return false.

Applies to