-
Notifications
You must be signed in to change notification settings - Fork 672
Expand file tree
/
Copy pathClientRegistrationRequest.cs
More file actions
99 lines (83 loc) · 2.9 KB
/
ClientRegistrationRequest.cs
File metadata and controls
99 lines (83 loc) · 2.9 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
using System.Text.Json.Serialization;
namespace ModelContextProtocol.TestOAuthServer;
/// <summary>
/// Represents a client registration request as defined in RFC 7591.
/// </summary>
internal sealed class ClientRegistrationRequest
{
/// <summary>
/// Gets or sets the redirect URIs for the client.
/// </summary>
[JsonPropertyName("redirect_uris")]
public required List<string> RedirectUris { get; init; }
/// <summary>
/// Gets or sets the token endpoint authentication method.
/// </summary>
[JsonPropertyName("token_endpoint_auth_method")]
public string? TokenEndpointAuthMethod { get; init; }
/// <summary>
/// Gets or sets the grant types that the client will use.
/// </summary>
[JsonPropertyName("grant_types")]
public List<string>? GrantTypes { get; init; }
/// <summary>
/// Gets or sets the response types that the client will use.
/// </summary>
[JsonPropertyName("response_types")]
public List<string>? ResponseTypes { get; init; }
/// <summary>
/// Gets or sets the human-readable name of the client.
/// </summary>
[JsonPropertyName("client_name")]
public string? ClientName { get; init; }
/// <summary>
/// Gets or sets the URL of the client's home page.
/// </summary>
[JsonPropertyName("client_uri")]
public string? ClientUri { get; init; }
/// <summary>
/// Gets or sets the URL for the client's logo.
/// </summary>
[JsonPropertyName("logo_uri")]
public string? LogoUri { get; init; }
/// <summary>
/// Gets or sets the scope values that the client will use.
/// </summary>
[JsonPropertyName("scope")]
public string? Scope { get; init; }
/// <summary>
/// Gets or sets the application type.
/// </summary>
[JsonPropertyName("application_type")]
public string? ApplicationType { get; init; }
/// <summary>
/// Gets or sets the contacts for the client.
/// </summary>
[JsonPropertyName("contacts")]
public List<string>? Contacts { get; init; }
/// <summary>
/// Gets or sets the URL for the client's terms of service.
/// </summary>
[JsonPropertyName("tos_uri")]
public string? TosUri { get; init; }
/// <summary>
/// Gets or sets the URL for the client's privacy policy.
/// </summary>
[JsonPropertyName("policy_uri")]
public string? PolicyUri { get; init; }
/// <summary>
/// Gets or sets the JWK Set URL for the client.
/// </summary>
[JsonPropertyName("jwks_uri")]
public string? JwksUri { get; init; }
/// <summary>
/// Gets or sets the software identifier for the client.
/// </summary>
[JsonPropertyName("software_id")]
public string? SoftwareId { get; init; }
/// <summary>
/// Gets or sets the software version for the client.
/// </summary>
[JsonPropertyName("software_version")]
public string? SoftwareVersion { get; init; }
}