Click or drag to resize

HttpAuthenticationChallengeContextExtensionsChallengeWith Method (HttpAuthenticationChallengeContext, AuthenticationHeaderValue)

Adds specified challenge header to HTTP authentication challenge context execution result, when unauthorized.

Namespace:  GSF.Web.Security
Assembly:  GSF.Web (in GSF.Web.dll) Version: 2.2.101-beta
Syntax
public static void ChallengeWith(
	this HttpAuthenticationChallengeContext context,
	AuthenticationHeaderValue challenge
)
Request Example View Source

Parameters

context
Type: HttpAuthenticationChallengeContext
HTTP authentication challenge context.
challenge
Type: System.Net.Http.HeadersAuthenticationHeaderValue
Authentication header value containing the challenge.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type HttpAuthenticationChallengeContext. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also