forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIOAuthSession.cs
More file actions
26 lines (23 loc) · 807 Bytes
/
IOAuthSession.cs
File metadata and controls
26 lines (23 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using System;
using System.Collections.Generic;
namespace ServiceStack.ServiceInterface.Auth
{
public interface IOAuthSession
{
string ReferrerUrl { get; set; }
string Id { get; set; }
string UserAuthId { get; set; }
string UserName { get; set; }
string DisplayName { get; set; }
string FirstName { get; set; }
string LastName { get; set; }
string Email { get; set; }
List<IOAuthTokens> ProviderOAuthAccess { get; set; }
DateTime CreatedAt { get; set; }
DateTime LastModified { get; set; }
bool IsAnyAuthorized();
bool IsAuthorized(string provider);
void OnAuthenticated(IServiceBase oAuthService, IOAuthTokens tokens, Dictionary<string, string> authInfo);
bool TryAuthenticate(IServiceBase oAuthService, string userName, string password);
}
}