Click or drag to resize

AuthenticationOptionsResourceRequiresAuthentication Method

Sets the resource to the required authentication state.

Namespace: GSF.Web.Security
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.207-beta
Syntax
public static void ResourceRequiresAuthentication(
	string resource,
	bool required
)
View Source

Parameters

resource  String
Resource name.
required  Boolean
Set to true to require authenticated access; otherwise, false to require anonymous access.
Remarks
This state overrides any authentication state that would otherwise be derived from AnonymousResourceExpression.
See Also