WebSudoFeature
Assembly: ServiceStack.dll
View Source
Declaration
public class WebSudoFeature : AuthEvents, IAuthEvents, IAuthEventsAsync, IPlugin, IHasStringId, IHasId<string>
Properties
Id
View Source
Declaration
public string Id { get; set; }
WebSudoDuration
View Source
Declaration
public TimeSpan WebSudoDuration { get; set; }
Fields
SessionCopyRequestItemKey
View Source
Declaration
public const string SessionCopyRequestItemKey = "__copy-of-request-session"
Methods
Register(IAppHost)
View Source
Declaration
public void Register(IAppHost appHost)
Parameters
Type | Name |
---|---|
ServiceStack.IAppHost | appHost |
OnCreated(IRequest, IAuthSession)
View Source
Declaration
public override void OnCreated(IRequest httpReq, IAuthSession session)
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
ServiceStack.Auth.IAuthSession | session |
OnAuthenticated(IRequest, IAuthSession, IServiceBase, IAuthTokens, Dictionary<String, String>)
View Source
Declaration
public override void OnAuthenticated(IRequest httpReq, IAuthSession session, IServiceBase authService, IAuthTokens tokens, Dictionary<string, string> authInfo)
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
ServiceStack.Auth.IAuthSession | session |
ServiceStack.IServiceBase | authService |
ServiceStack.Auth.IAuthTokens | tokens |
System.Collections.Generic.Dictionary<System.String,System.String> | authInfo |
Inherited Methods
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
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
ServiceStack.Auth.IAuthSession | session |
ServiceStack.IServiceBase | authService |
ServiceStack.Auth.IAuthTokens | tokens |
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
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
ServiceStack.Auth.IAuthSession | session |
ServiceStack.IServiceBase | authService |
ServiceStack.Auth.IAuthTokens | tokens |
System.Collections.Generic.Dictionary<System.String,System.String> | authInfo |
System.Threading.CancellationToken | token |
OnCreated(IRequest, IAuthSession)
View Source
Declaration
public virtual void OnCreated(IRequest httpReq, IAuthSession session)
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
ServiceStack.Auth.IAuthSession | session |
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
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
ServiceStack.Auth.IAuthSession | session |
System.Threading.CancellationToken | token |
OnLogout(IRequest, IAuthSession, IServiceBase)
View Source
Declaration
public virtual void OnLogout(IRequest httpReq, IAuthSession session, IServiceBase authService)
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
ServiceStack.Auth.IAuthSession | session |
ServiceStack.IServiceBase | authService |
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
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
ServiceStack.Auth.IAuthSession | session |
ServiceStack.IServiceBase | authService |
System.Threading.CancellationToken | token |
OnRegistered(IRequest, IAuthSession, IServiceBase)
View Source
Declaration
public virtual void OnRegistered(IRequest httpReq, IAuthSession session, IServiceBase registrationService)
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
ServiceStack.Auth.IAuthSession | session |
ServiceStack.IServiceBase | registrationService |
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
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
ServiceStack.Auth.IAuthSession | session |
ServiceStack.IServiceBase | registrationService |
System.Threading.CancellationToken | token |
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
Parameters
Type | Name |
---|---|
ServiceStack.IServiceBase | authService |
ServiceStack.Auth.IAuthSession | session |
ServiceStack.Auth.IAuthTokens | tokens |
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
Type | Name |
---|---|
ServiceStack.IServiceBase | authService |
ServiceStack.Auth.IAuthSession | session |
ServiceStack.Auth.IAuthTokens | tokens |
System.Collections.Generic.Dictionary<System.String,System.String> | authInfo |
System.Threading.CancellationToken | token |