Add application_type to the Dynamic Client Registration request (#1613)
This commit is contained in:
parent
28806b1b6e
commit
20c464c55b
2 changed files with 223 additions and 3 deletions
|
|
@ -55,6 +55,12 @@ internal sealed class ClientRegistrationRequest
|
|||
[JsonPropertyName("scope")]
|
||||
public string? Scope { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the OIDC application type ("web" or "native").
|
||||
/// </summary>
|
||||
[JsonPropertyName("application_type")]
|
||||
public string? ApplicationType { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the contacts for the client.
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -120,6 +120,9 @@ public sealed class Program
|
|||
/// <summary>Gets the <c>scope</c> field from the most recent Dynamic Client Registration request.</summary>
|
||||
public string? LastRegistrationScope { get; private set; }
|
||||
|
||||
/// <summary>Gets the <c>application_type</c> field from the most recent Dynamic Client Registration request.</summary>
|
||||
public string? LastApplicationType { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Entry point for the application.
|
||||
/// </summary>
|
||||
|
|
@ -681,6 +684,7 @@ public sealed class Program
|
|||
}
|
||||
|
||||
LastRegistrationScope = registrationRequest.Scope;
|
||||
LastApplicationType = registrationRequest.ApplicationType;
|
||||
|
||||
// Validate redirect URIs are provided
|
||||
if (registrationRequest.RedirectUris.Count == 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue