Expand description
Provides utilities for flexible scope matching and parsing.
Structs§
- Flexible
Matcher - A flexible implementation of the
ScopeMatchertrait that supports multipart scope token matching with common delimiters and wildcards.
Traits§
- Scope
Matcher - The
ScopeMatchertrait defines how to match a user’s scope token against a required scope token. This abstraction allows for flexible matching logic, including support for different delimiters and wildcards.
Functions§
- authorize_
with_ matcher - Checks if a required scope is authorized by any of the user’s scopes
using the given
ScopeMatcherimplementation. - parse_
scope_ string - Parses a scope string into a list of individual scope tokens, separated by whitespace (as per OAuth2/RFC conventions).