Add ScopeSelectorDelegate to enhance OAuth options for scope filtering (#1596)

This commit is contained in:
Manuel Naujoks 2026-05-27 00:23:52 +02:00 • committed by GitHub
commit fd1ac08925
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -91,6 +91,9 @@ public sealed class Program
public HashSet<string> DisabledMetadataPaths { get; } = new(StringComparer.OrdinalIgnoreCase);
public IReadOnlyCollection<string> MetadataRequests => _metadataRequests.ToArray();
/// <summary>Gets the <c>scope</c> field from the most recent Dynamic Client Registration request.</summary>
public string? LastRegistrationScope { get; private set; }
/// <summary>
/// Entry point for the application.
/// </summary>
@ -513,6 +516,8 @@ public sealed class Program
});
}
LastRegistrationScope = registrationRequest.Scope;
// Validate redirect URIs are provided
if (registrationRequest.RedirectUris.Count == 0)
{