Skip to main content

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
TypeName
ServiceStack.IServiceBaseauthService
ServiceStack.Auth.IAuthSessionsession
ServiceStack.Authenticaterequest

PreAuthenticate(IRequest, IResponse)

View Source
Declaration
public virtual void PreAuthenticate(IRequest req, IResponse res)
Parameters
TypeName
ServiceStack.Web.IRequestreq
ServiceStack.Web.IResponseres

Inherited Methods

Authenticate(IServiceBase, IAuthSession, Authenticate)

View Source
Declaration
public override object Authenticate(IServiceBase authService, IAuthSession session, Authenticate request)
Returns

System.Object

Parameters
TypeName
ServiceStack.IServiceBaseauthService
ServiceStack.Auth.IAuthSessionsession
ServiceStack.Authenticaterequest

Authenticate(IServiceBase, IAuthSession, String, String)

View Source
Declaration
protected object Authenticate(IServiceBase authService, IAuthSession session, string userName, string password)
Returns

System.Object

Parameters
TypeName
ServiceStack.IServiceBaseauthService
ServiceStack.Auth.IAuthSessionsession
System.StringuserName
System.Stringpassword

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
TypeName
ServiceStack.IServiceBaseauthService
ServiceStack.Auth.IAuthSessionsession
System.StringuserName
System.Stringpassword
System.StringreferrerUrl

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
TypeName
ServiceStack.IServiceBaseauthService
ServiceStack.Auth.IAuthSessionsession
System.StringuserName
System.Stringpassword
System.StringreferrerUrl

GetUserAuthRepository(IRequest)

View Source
Declaration
public IUserAuthRepository GetUserAuthRepository(IRequest request)
Returns

ServiceStack.Auth.IUserAuthRepository

Parameters
TypeName
ServiceStack.Web.IRequestrequest

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

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

ServiceStack.Web.IHttpResult

Parameters
TypeName
ServiceStack.IServiceBaseauthService
ServiceStack.Auth.IAuthSessionsession
ServiceStack.Auth.IAuthTokenstokens
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
TypeName
ServiceStack.IServiceBaseauthService
ServiceStack.Auth.IAuthSessionsession
System.StringuserName

TryAuthenticate(IServiceBase, String, String)

View Source
Declaration
public virtual bool TryAuthenticate(IServiceBase authService, string userName, string password)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.IServiceBaseauthService
System.StringuserName
System.Stringpassword

Implements