Interface IScopeParser
- Namespace
- Fdyay.IdentityServer.Validation
- Assembly
- Fdyay.IdentityServer.Core.dll
Reads the scope values a request names into the scope each one asks for, and any parameter it carries.
public interface IScopeParser
Remarks
Duende 8.0.1's IScopeParser, measured: what makes a parameterized scope possible — transaction:123 asking
for the transaction scope about transaction 123. The resource validator asks it first, checks each parsed name
against the client and the resource store, and keeps the raw value, so the value the client sent is the one granted,
consented to and carried in the tokens. Registered with AddScopeParser<T>(); the default parses nothing.
Methods
ParseScopeValues(IEnumerable<string>)
Parses each scope value into the scope it names and any parameter it carries.
ParsedScopesResult ParseScopeValues(IEnumerable<string> scopeValues)
Parameters
scopeValuesIEnumerable<string>The scope values as the request named them.
Returns
- ParsedScopesResult
The values parsed, and the values refused with the reason for each.