[This is preliminary documentation and is subject to change.]

Indicates that a handler resource is only available to authenticated users.

Namespace: Simple.Web.BehaviorsSimple.Web.BehaviorsSimple::Web::Behaviors
Assembly: Simple.Web (in Simple.Web.dll)

Syntax

C#

[RequestBehavior(typeof(CheckAuthentication), Priority = Priority.Highest)]

public interface IRequireAuthentication

VB

<RequestBehavior(GetType(CheckAuthentication), Priority := Priority.Highest)> _

Public Interface IRequireAuthentication

C++

[RequestBehavior(CheckAuthentication::typeid, Priority = Priority::Highest)]

public interface class IRequireAuthentication

The IRequireAuthenticationIRequireAuthenticationIRequireAuthentication type exposes the following members.

Properties

Name Description
CurrentUserCurrentUserCurrentUser Used by the framework to set the current user.
Top

Remarks

If a user is authenticated, the CurrentUserCurrentUserCurrentUser property will be set. If not, they will be redirected to the login page.

See Also

Simple.Web.BehaviorsSimple.Web.BehaviorsSimple::Web::Behaviors Namespace