Add application_type to the Dynamic Client Registration request (#1613)

This commit is contained in:
Jayaraman Venkatesan 2026-07-22 13:43:36 -04:00 • committed by GitHub
commit 20c464c55b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 223 additions and 3 deletions

View file

@ -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>

View file

@ -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)