forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIUserAuthRepository.cs
More file actions
20 lines (19 loc) · 1.03 KB
/
IUserAuthRepository.cs
File metadata and controls
20 lines (19 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using System.Collections.Generic;
namespace ServiceStack.ServiceInterface.Auth
{
public interface IUserAuthRepository
{
UserAuth CreateUserAuth(UserAuth newUser, string password);
UserAuth UpdateUserAuth(UserAuth existingUser, UserAuth newUser, string password);
UserAuth GetUserAuthByUserName(string userNameOrEmail);
bool TryAuthenticate(string userName, string password, out UserAuth userAuth);
bool TryAuthenticate(Dictionary<string, string> digestHeaders, string PrivateKey, int NonceTimeOut, string sequence, out UserAuth userAuth);
void LoadUserAuth(IAuthSession session, IOAuthTokens tokens);
UserAuth GetUserAuth(string userAuthId);
void SaveUserAuth(IAuthSession authSession);
void SaveUserAuth(UserAuth userAuth);
List<UserOAuthProvider> GetUserOAuthProviders(string userAuthId);
UserAuth GetUserAuth(IAuthSession authSession, IOAuthTokens tokens);
string CreateOrMergeAuthSession(IAuthSession authSession, IOAuthTokens tokens);
}
}