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
Type | Name |
---|---|
ServiceStack.IServiceBase | authService |
ServiceStack.Auth.IAuthSession | session |
ServiceStack.Authenticate | request |
System.Threading.CancellationToken | token |
PreAuthenticateAsync(IRequest, IResponse)
View Source
Declaration
public virtual async Task PreAuthenticateAsync(IRequest req, IResponse res)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
ServiceStack.Web.IResponse | res |
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
Type | Name |
---|---|
ServiceStack.IServiceBase | authService |
ServiceStack.Auth.IAuthSession | session |
ServiceStack.Authenticate | request |
System.Threading.CancellationToken | token |
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
Type | Name |
---|---|
ServiceStack.IServiceBase | authService |
ServiceStack.Auth.IAuthSession | session |
System.String | userName |
System.String | password |
System.String | referrerUrl |
System.Threading.CancellationToken | token |
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
Type | Name |
---|---|
ServiceStack.IServiceBase | authService |
ServiceStack.Auth.IAuthSession | session |
System.String | userName |
System.String | password |
System.String | referrerUrl |
System.Threading.CancellationToken | token |
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
Type | Name |
---|---|
ServiceStack.Auth.IAuthSession | session |
ServiceStack.Auth.IAuthTokens | tokens |
ServiceStack.Authenticate | request |
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
Type | Name |
---|---|
ServiceStack.IServiceBase | authService |
ServiceStack.Auth.IAuthSession | session |
System.String | userName |
System.Threading.CancellationToken | token |
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
Type | Name |
---|---|
ServiceStack.IServiceBase | authService |
System.String | userName |
System.String | password |
System.Threading.CancellationToken | token |