ScopeManager Class
Abblix.Oidc.Server
Abblix.Oidc.Server.Features.ScopeManagement
ScopeManager Class
In-memory IScopeManager that seeds the registry with the six OIDC Core §5.4
standard scopes (openid, profile, email, address, phone,
offline_access) and merges any host-defined scopes from
Scopes. Lookups are case-sensitive (RFC 6749 §3.3 treats scope
values as case-sensitive strings) and host-defined scopes do not override the standard ones.
public class ScopeManager : Abblix.Oidc.Server.Features.ScopeManagement.IScopeManager, System.Collections.Generic.IEnumerable<Abblix.Oidc.Server.Common.Constants.ScopeDefinition>, System.Collections.IEnumerable
Inheritance System.Object → ScopeManager
Implements IScopeManager, System.Collections.Generic.IEnumerable<ScopeDefinition>, System.Collections.IEnumerable
Constructors
ScopeManager(IOptions<OidcOptions>) Constructor
In-memory IScopeManager that seeds the registry with the six OIDC Core §5.4
standard scopes (openid, profile, email, address, phone,
offline_access) and merges any host-defined scopes from
Scopes. Lookups are case-sensitive (RFC 6749 §3.3 treats scope
values as case-sensitive strings) and host-defined scopes do not override the standard ones.
public ScopeManager(Microsoft.Extensions.Options.IOptions<Abblix.Oidc.Server.Common.Configuration.OidcOptions> options);
Parameters
options Microsoft.Extensions.Options.IOptions<OidcOptions>
The options containing OIDC configuration, including additional custom scopes.
Methods
ScopeManager.GetEnumerator() Method
Iterates over all registered scope definitions in unspecified order.
public System.Collections.Generic.IEnumerator<Abblix.Oidc.Server.Common.Constants.ScopeDefinition> GetEnumerator();
Implements GetEnumerator(), GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<ScopeDefinition>
ScopeManager.TryGet(string, ScopeDefinition) Method
Attempts to retrieve the definition of a specified scope.
public bool TryGet(string scope, out Abblix.Oidc.Server.Common.Constants.ScopeDefinition definition);
Parameters
scope System.String
The scope identifier to retrieve the definition for.
definition ScopeDefinition
Outputs the ScopeDefinition if the scope exists, otherwise null.
Implements TryGet(string, ScopeDefinition)
Returns
System.Boolean
True if the scope exists and the definition is retrieved, false otherwise.