Skip to main content

Module scope

Module scope 

Source
Expand description

Provides utilities for flexible scope matching and parsing.

Structs§

FlexibleMatcher
A flexible implementation of the ScopeMatcher trait that supports multipart scope token matching with common delimiters and wildcards.

Traits§

ScopeMatcher
The ScopeMatcher trait 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 ScopeMatcher implementation.
parse_scope_string
Parses a scope string into a list of individual scope tokens, separated by whitespace (as per OAuth2/RFC conventions).