Skip to main content

BasicAuthProvider

Assembly: ServiceStack.dll
View Source
Declaration
public class BasicAuthProvider : CredentialsAuthProvider, IAuthProvider, IAuthPlugin, IAuthWithRequest

Properties

Type

View Source
Declaration
public override string Type { get; }

Inherited Properties

SkipPasswordVerificationForInProcessRequests

View Source
Declaration
public bool SkipPasswordVerificationForInProcessRequests { get; set; }

Type

View Source
Declaration
public override string Type { get; }

Fields

Name

View Source
Declaration
public static string Name

Realm

View Source
Declaration
public static string Realm

Methods

AuthenticateAsync(IServiceBase, IAuthSession, Authenticate, CancellationToken)

View Source
Declaration
public override async Task<object> AuthenticateAsync(IServiceBase authService, IAuthSession session, Authenticate request, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<System.Object>

Parameters
TypeName
ServiceStack.IServiceBaseauthService
ServiceStack.Auth.IAuthSessionsession
ServiceStack.Authenticaterequest
System.Threading.CancellationTokentoken

PreAuthenticateAsync(IRequest, IResponse)

View Source
Declaration
public virtual async Task PreAuthenticateAsync(IRequest req, IResponse res)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Web.IRequestreq
ServiceStack.Web.IResponseres

Inherited Methods

AuthenticateAsync(IServiceBase, IAuthSession, Authenticate, CancellationToken)

View Source
Declaration
public override async Task<object> AuthenticateAsync(IServiceBase authService, IAuthSession session, Authenticate request, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<System.Object>

Parameters
TypeName
ServiceStack.IServiceBaseauthService
ServiceStack.Auth.IAuthSessionsession
ServiceStack.Authenticaterequest
System.Threading.CancellationTokentoken

AuthenticateAsync(IServiceBase, IAuthSession, String, String, String, CancellationToken)

View Source
Declaration
protected async Task<object> AuthenticateAsync(IServiceBase authService, IAuthSession session, string userName, string password, string referrerUrl, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<System.Object>

Parameters
TypeName
ServiceStack.IServiceBaseauthService
ServiceStack.Auth.IAuthSessionsession
System.StringuserName
System.Stringpassword
System.StringreferrerUrl
System.Threading.CancellationTokentoken

AuthenticatePrivateRequestAsync(IServiceBase, IAuthSession, String, String, String, CancellationToken)

View Source
Declaration
protected virtual async Task<object> AuthenticatePrivateRequestAsync(IServiceBase authService, IAuthSession session, string userName, string password, string referrerUrl, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<System.Object>

Parameters
TypeName
ServiceStack.IServiceBaseauthService
ServiceStack.Auth.IAuthSessionsession
System.StringuserName
System.Stringpassword
System.StringreferrerUrl
System.Threading.CancellationTokentoken

Init()

View Source
Declaration
protected virtual void Init()

IsAuthorized(IAuthSession, IAuthTokens, Authenticate)

View Source
Declaration
public override bool IsAuthorized(IAuthSession session, IAuthTokens tokens, Authenticate request = null)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.Auth.IAuthSessionsession
ServiceStack.Auth.IAuthTokenstokens
ServiceStack.Authenticaterequest

ResetSessionBeforeLoginAsync(IServiceBase, IAuthSession, String, CancellationToken)

View Source
Declaration
protected virtual async Task<IAuthSession> ResetSessionBeforeLoginAsync(IServiceBase authService, IAuthSession session, string userName, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<ServiceStack.Auth.IAuthSession>

Parameters
TypeName
ServiceStack.IServiceBaseauthService
ServiceStack.Auth.IAuthSessionsession
System.StringuserName
System.Threading.CancellationTokentoken

TryAuthenticateAsync(IServiceBase, String, String, CancellationToken)

View Source
Declaration
public virtual async Task<bool> TryAuthenticateAsync(IServiceBase authService, string userName, string password, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<System.Boolean>

Parameters
TypeName
ServiceStack.IServiceBaseauthService
System.StringuserName
System.Stringpassword
System.Threading.CancellationTokentoken

Implements