Skip to main content

AuthEvents

Convenient base class with empty virtual methods so subclasses only need to override the hooks they need.

Assembly: ServiceStack.dll
View Source
Declaration
public class AuthEvents : IAuthEvents, IAuthEventsAsync

Methods

OnCreated(IRequest, IAuthSession)

View Source
Declaration
public virtual void OnCreated(IRequest httpReq, IAuthSession session)
Parameters
TypeName
ServiceStack.Web.IRequesthttpReq
ServiceStack.Auth.IAuthSessionsession

OnCreatedAsync(IRequest, IAuthSession, CancellationToken)

View Source
Declaration
public virtual Task OnCreatedAsync(IRequest httpReq, IAuthSession session, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Web.IRequesthttpReq
ServiceStack.Auth.IAuthSessionsession
System.Threading.CancellationTokentoken

OnRegistered(IRequest, IAuthSession, IServiceBase)

View Source
Declaration
public virtual void OnRegistered(IRequest httpReq, IAuthSession session, IServiceBase registrationService)
Parameters
TypeName
ServiceStack.Web.IRequesthttpReq
ServiceStack.Auth.IAuthSessionsession
ServiceStack.IServiceBaseregistrationService

OnRegisteredAsync(IRequest, IAuthSession, IServiceBase, CancellationToken)

View Source
Declaration
public virtual Task OnRegisteredAsync(IRequest httpReq, IAuthSession session, IServiceBase registrationService, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Web.IRequesthttpReq
ServiceStack.Auth.IAuthSessionsession
ServiceStack.IServiceBaseregistrationService
System.Threading.CancellationTokentoken

Validate(IServiceBase, IAuthSession, IAuthTokens, Dictionary<String, String>)

View Source
Declaration
public virtual IHttpResult Validate(IServiceBase authService, IAuthSession session, IAuthTokens tokens, Dictionary<string, string> authInfo)
Returns

ServiceStack.Web.IHttpResult

Parameters
TypeName
ServiceStack.IServiceBaseauthService
ServiceStack.Auth.IAuthSessionsession
ServiceStack.Auth.IAuthTokenstokens
System.Collections.Generic.Dictionary<System.String,System.String>authInfo

ValidateAsync(IServiceBase, IAuthSession, IAuthTokens, Dictionary<String, String>, CancellationToken)

View Source
Declaration
public virtual Task<IHttpResult> ValidateAsync(IServiceBase authService, IAuthSession session, IAuthTokens tokens, Dictionary<string, string> authInfo, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<ServiceStack.Web.IHttpResult>

Parameters
TypeName
ServiceStack.IServiceBaseauthService
ServiceStack.Auth.IAuthSessionsession
ServiceStack.Auth.IAuthTokenstokens
System.Collections.Generic.Dictionary<System.String,System.String>authInfo
System.Threading.CancellationTokentoken

OnAuthenticated(IRequest, IAuthSession, IServiceBase, IAuthTokens, Dictionary<String, String>)

View Source
Declaration
public virtual void OnAuthenticated(IRequest httpReq, IAuthSession session, IServiceBase authService, IAuthTokens tokens, Dictionary<string, string> authInfo)
Parameters
TypeName
ServiceStack.Web.IRequesthttpReq
ServiceStack.Auth.IAuthSessionsession
ServiceStack.IServiceBaseauthService
ServiceStack.Auth.IAuthTokenstokens
System.Collections.Generic.Dictionary<System.String,System.String>authInfo

OnAuthenticatedAsync(IRequest, IAuthSession, IServiceBase, IAuthTokens, Dictionary<String, String>, CancellationToken)

View Source
Declaration
public virtual Task OnAuthenticatedAsync(IRequest httpReq, IAuthSession session, IServiceBase authService, IAuthTokens tokens, Dictionary<string, string> authInfo, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Web.IRequesthttpReq
ServiceStack.Auth.IAuthSessionsession
ServiceStack.IServiceBaseauthService
ServiceStack.Auth.IAuthTokenstokens
System.Collections.Generic.Dictionary<System.String,System.String>authInfo
System.Threading.CancellationTokentoken

OnLogout(IRequest, IAuthSession, IServiceBase)

View Source
Declaration
public virtual void OnLogout(IRequest httpReq, IAuthSession session, IServiceBase authService)
Parameters
TypeName
ServiceStack.Web.IRequesthttpReq
ServiceStack.Auth.IAuthSessionsession
ServiceStack.IServiceBaseauthService

OnLogoutAsync(IRequest, IAuthSession, IServiceBase, CancellationToken)

View Source
Declaration
public virtual Task OnLogoutAsync(IRequest httpReq, IAuthSession session, IServiceBase authService, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Web.IRequesthttpReq
ServiceStack.Auth.IAuthSessionsession
ServiceStack.IServiceBaseauthService
System.Threading.CancellationTokentoken

Implements