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

Gets the logged in user from the context.

Namespace: Simple.Web.AuthenticationSimple.Web.AuthenticationSimple::Web::Authentication
Assembly: Simple.Web (in Simple.Web.dll)

Syntax

C#

public IUser GetLoggedInUser(

IContext context

)

VB

Public Function GetLoggedInUser( _

context As IContext _

) As IUser

C++

public:

virtual IUser^ GetLoggedInUser(

IContext^ context

sealed

Parameters

Return Value

Type: Simple.Web.Authentication.IUserSimple.Web.Authentication.IUserSimple::Web::Authentication::IUser
A user, or null if no user is authenticated.

Implements

IAuthenticationProvider.GetLoggedInUser(IContext)IAuthenticationProvider.GetLoggedInUser(IContext)IAuthenticationProvider::GetLoggedInUser(IContext^)

See Also

DefaultAuthenticationProviderDefaultAuthenticationProviderDefaultAuthenticationProvider Class
Simple.Web.AuthenticationSimple.Web.AuthenticationSimple::Web::Authentication Namespace