pub fn validate_scopes(
requested: &[String],
allowed: &[&str],
) -> Result<Vec<String>, ScopeError>Expand description
Validate that every requested scope is in the allowed set.
Returns the normalized scope list on success, or the first unknown scope as an error.