Click or drag to resize

HttpAuthenticationChallengeContextExtensionsChallengeWith Method (HttpAuthenticationChallengeContext, String)

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

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

Parameters

context
Type: HttpAuthenticationChallengeContext
HTTP authentication challenge context.
scheme
Type: SystemString
Authentication scheme.

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