-
Notifications
You must be signed in to change notification settings - Fork 170
/
LoginResult.cs
89 lines (78 loc) · 2.45 KB
/
LoginResult.cs
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
using System;
using System.Net.Http;
using System.Security.Claims;
namespace IdentityModel.OidcClient
{
/// <summary>
/// The result of a login.
/// </summary>
/// <seealso cref="IdentityModel.OidcClient.Result" />
public class LoginResult : Result
{
/// <summary>
/// Initializes a new instance of the <see cref="LoginResult"/> class.
/// </summary>
public LoginResult()
{
}
/// <summary>
/// Initializes a new instance of the <see cref="LoginResult"/> class.
/// </summary>
/// <param name="error">The error.</param>
public LoginResult(string error)
{
Error = error;
}
/// <summary>
/// Gets or sets the user.
/// </summary>
/// <value>
/// The user.
/// </value>
public ClaimsPrincipal User { get; internal set; }
/// <summary>
/// Gets or sets the access token.
/// </summary>
/// <value>
/// The access token.
/// </value>
public string AccessToken { get; internal set; }
/// <summary>
/// Gets or sets the identity token.
/// </summary>
/// <value>
/// The identity token.
/// </value>
public string IdentityToken { get; internal set; }
/// <summary>
/// Gets or sets the refresh token.
/// </summary>
/// <value>
/// The refresh token.
/// </value>
public string RefreshToken { get; internal set; }
/// <summary>
/// Gets or sets the access token expiration.
/// </summary>
/// <value>
/// The access token expiration.
/// </value>
public DateTime AccessTokenExpiration { get; internal set; }
/// <summary>
/// Gets or sets the authentication time.
/// </summary>
/// <value>
/// The authentication time.
/// </value>
public DateTime AuthenticationTime { get; internal set; }
/// <summary>
/// Gets or sets the refresh token handler.
/// </summary>
/// <value>
/// The refresh token handler.
/// </value>
public HttpMessageHandler RefreshTokenHandler { get; internal set; }
}
}