HttpBearerChallenge.IsBearerChallenge(String) Method
Definition
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.
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.