Add ScopeSelectorDelegate to enhance OAuth options for scope filtering (#1596)
This commit is contained in:
parent
157f855e51
commit
fd1ac08925
1 changed files with 277 additions and 7 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue