BasicAuthProviderSync
Assembly: ServiceStack.dll
View Source
Declaration
public class BasicAuthProviderSync : CredentialsAuthProviderSync, IAuthProvider, IAuthPlugin, IAuthWithRequestSync
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
Authenticate(IServiceBase, IAuthSession, Authenticate)
View Source
Declaration
public override object Authenticate(IServiceBase authService, IAuthSession session, Authenticate request)
Returns
System.Object
Parameters
Type | Name |
---|---|
ServiceStack.IServiceBase | authService |
ServiceStack.Auth.IAuthSession | session |
ServiceStack.Authenticate | request |
PreAuthenticate(IRequest, IResponse)
View Source
Declaration
public virtual void PreAuthenticate(IRequest req, IResponse res)
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
ServiceStack.Web.IResponse | res |
Inherited Methods
Authenticate(IServiceBase, IAuthSession, Authenticate)
View Source
Declaration
public override object Authenticate(IServiceBase authService, IAuthSession session, Authenticate request)
Returns
System.Object
Parameters
Type | Name |
---|---|
ServiceStack.IServiceBase | authService |
ServiceStack.Auth.IAuthSession | session |
ServiceStack.Authenticate | request |
Authenticate(IServiceBase, IAuthSession, String, String)
View Source
Declaration
protected object Authenticate(IServiceBase authService, IAuthSession session, string userName, string password)
Returns
System.Object
Parameters
Type | Name |
---|---|
ServiceStack.IServiceBase | authService |
ServiceStack.Auth.IAuthSession | session |
System.String | userName |
System.String | password |
Authenticate(IServiceBase, IAuthSession, String, String, String)
View Source
Declaration
protected object Authenticate(IServiceBase authService, IAuthSession session, string userName, string password, string referrerUrl)
Returns
System.Object
Parameters
Type | Name |
---|---|
ServiceStack.IServiceBase | authService |
ServiceStack.Auth.IAuthSession | session |
System.String | userName |
System.String | password |
System.String | referrerUrl |
AuthenticatePrivateRequest(IServiceBase, IAuthSession, String, String, String)
View Source
Declaration
protected virtual object AuthenticatePrivateRequest(IServiceBase authService, IAuthSession session, string userName, string password, string referrerUrl)
Returns
System.Object
Parameters
Type | Name |
---|---|
ServiceStack.IServiceBase | authService |
ServiceStack.Auth.IAuthSession | session |
System.String | userName |
System.String | password |
System.String | referrerUrl |
GetUserAuthRepository(IRequest)
View Source
Declaration
public IUserAuthRepository GetUserAuthRepository(IRequest request)
Returns
ServiceStack.Auth.IUserAuthRepository
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | request |
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 |
OnAuthenticated(IServiceBase, IAuthSession, IAuthTokens, Dictionary<String, String>)
View Source
Declaration
public override IHttpResult OnAuthenticated(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 |
ResetSessionBeforeLogin(IServiceBase, IAuthSession, String)
View Source
Declaration
protected virtual IAuthSession ResetSessionBeforeLogin(IServiceBase authService, IAuthSession session, string userName)
Returns
ServiceStack.Auth.IAuthSession
Parameters
Type | Name |
---|---|
ServiceStack.IServiceBase | authService |
ServiceStack.Auth.IAuthSession | session |
System.String | userName |
TryAuthenticate(IServiceBase, String, String)
View Source
Declaration
public virtual bool TryAuthenticate(IServiceBase authService, string userName, string password)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.IServiceBase | authService |
System.String | userName |
System.String | password |