C# Class Amss.Boilerplate.Api.Configuration.CustomUserAuthRepository

Inheritance: IUserAuthRepository
Exibir arquivo Open project: quadio/amss-boilerplate

Public Methods

Method Description
CreateOrMergeAuthSession ( IAuthSession authSession, IOAuthTokens tokens ) : string
CreateUserAuth ( ServiceStack.ServiceInterface.Auth.UserAuth newUser, string password ) : ServiceStack.ServiceInterface.Auth.UserAuth
GetUserAuth ( IAuthSession authSession, IOAuthTokens tokens ) : ServiceStack.ServiceInterface.Auth.UserAuth
GetUserAuth ( string userAuthId ) : ServiceStack.ServiceInterface.Auth.UserAuth
GetUserAuthByUserName ( string userNameOrEmail ) : ServiceStack.ServiceInterface.Auth.UserAuth
GetUserOAuthProviders ( string userAuthId ) : List
LoadUserAuth ( IAuthSession session, IOAuthTokens tokens ) : void
SaveUserAuth ( IAuthSession authSession ) : void
SaveUserAuth ( ServiceStack.ServiceInterface.Auth.UserAuth userAuth ) : void
TryAuthenticate ( string>.Dictionary digestHeaders, string privateKey, int nonceTimeOut, string sequence, ServiceStack.ServiceInterface.Auth.UserAuth &userAuth ) : bool
TryAuthenticate ( string userName, string password, ServiceStack.ServiceInterface.Auth.UserAuth &userAuth ) : bool
UpdateUserAuth ( ServiceStack.ServiceInterface.Auth.UserAuth existingUser, ServiceStack.ServiceInterface.Auth.UserAuth newUser, string password ) : ServiceStack.ServiceInterface.Auth.UserAuth

Method Details

CreateOrMergeAuthSession() public method

public CreateOrMergeAuthSession ( IAuthSession authSession, IOAuthTokens tokens ) : string
authSession IAuthSession
tokens IOAuthTokens
return string

CreateUserAuth() public method

public CreateUserAuth ( ServiceStack.ServiceInterface.Auth.UserAuth newUser, string password ) : ServiceStack.ServiceInterface.Auth.UserAuth
newUser ServiceStack.ServiceInterface.Auth.UserAuth
password string
return ServiceStack.ServiceInterface.Auth.UserAuth

GetUserAuth() public method

public GetUserAuth ( IAuthSession authSession, IOAuthTokens tokens ) : ServiceStack.ServiceInterface.Auth.UserAuth
authSession IAuthSession
tokens IOAuthTokens
return ServiceStack.ServiceInterface.Auth.UserAuth

GetUserAuth() public method

public GetUserAuth ( string userAuthId ) : ServiceStack.ServiceInterface.Auth.UserAuth
userAuthId string
return ServiceStack.ServiceInterface.Auth.UserAuth

GetUserAuthByUserName() public method

public GetUserAuthByUserName ( string userNameOrEmail ) : ServiceStack.ServiceInterface.Auth.UserAuth
userNameOrEmail string
return ServiceStack.ServiceInterface.Auth.UserAuth

GetUserOAuthProviders() public method

public GetUserOAuthProviders ( string userAuthId ) : List
userAuthId string
return List

LoadUserAuth() public method

public LoadUserAuth ( IAuthSession session, IOAuthTokens tokens ) : void
session IAuthSession
tokens IOAuthTokens
return void

SaveUserAuth() public method

public SaveUserAuth ( IAuthSession authSession ) : void
authSession IAuthSession
return void

SaveUserAuth() public method

public SaveUserAuth ( ServiceStack.ServiceInterface.Auth.UserAuth userAuth ) : void
userAuth ServiceStack.ServiceInterface.Auth.UserAuth
return void

TryAuthenticate() public method

public TryAuthenticate ( string>.Dictionary digestHeaders, string privateKey, int nonceTimeOut, string sequence, ServiceStack.ServiceInterface.Auth.UserAuth &userAuth ) : bool
digestHeaders string>.Dictionary
privateKey string
nonceTimeOut int
sequence string
userAuth ServiceStack.ServiceInterface.Auth.UserAuth
return bool

TryAuthenticate() public method

public TryAuthenticate ( string userName, string password, ServiceStack.ServiceInterface.Auth.UserAuth &userAuth ) : bool
userName string
password string
userAuth ServiceStack.ServiceInterface.Auth.UserAuth
return bool

UpdateUserAuth() public method

public UpdateUserAuth ( ServiceStack.ServiceInterface.Auth.UserAuth existingUser, ServiceStack.ServiceInterface.Auth.UserAuth newUser, string password ) : ServiceStack.ServiceInterface.Auth.UserAuth
existingUser ServiceStack.ServiceInterface.Auth.UserAuth
newUser ServiceStack.ServiceInterface.Auth.UserAuth
password string
return ServiceStack.ServiceInterface.Auth.UserAuth