-
Notifications
You must be signed in to change notification settings - Fork 393
Expand file tree
/
Copy pathRefreshTokenCreationRequest.cs
More file actions
65 lines (52 loc) · 1.86 KB
/
RefreshTokenCreationRequest.cs
File metadata and controls
65 lines (52 loc) · 1.86 KB
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
// Copyright (c) Duende Software. All rights reserved.
// See LICENSE in the project root for license information.
#nullable enable
using System.Security.Claims;
namespace Duende.IdentityServer.Models;
/// <summary>
/// Models the data to create a refresh token from a validated request.
/// </summary>
public class RefreshTokenCreationRequest
{
/// <summary>
/// The client.
/// </summary>
public required Client Client { get; set; }
/// <summary>
/// The subject.
/// </summary>
public required ClaimsPrincipal Subject { get; set; }
/// <summary>
/// The description.
/// </summary>
public string? Description { get; set; }
/// <summary>
/// The scopes.
/// </summary>
public required IEnumerable<string> AuthorizedScopes { get; set; }
/// <summary>
/// The resource indicators. Null indicates there was no authorization step, thus no restrictions.
/// Non-null means there was an authorization step, and subsequent requested resource indicators must be in the original list.
/// </summary>
public IEnumerable<string>? AuthorizedResourceIndicators { get; set; }
/// <summary>
/// The requested resource indicator.
/// </summary>
public string? RequestedResourceIndicator { get; set; }
/// <summary>
/// The access token.
/// </summary>
public required Token AccessToken { get; set; }
/// <summary>
/// The proof type used.
/// </summary>
public ProofType ProofType { get; set; }
/// <summary>
/// Called to validate the <see cref="RefreshTokenCreationRequest"/> before it is processed.
/// </summary>
public void Validate()
{
//if (ValidatedResources == null) throw new ArgumentNullException(nameof(ValidatedResources));
//if (ValidatedRequest == null) throw new ArgumentNullException(nameof(ValidatedRequest));
}
}