Skip to main content

validate

Function validate 

Source
pub fn validate(scope: &str) -> Result<(), Error>
Expand description

Validate the format of an OAuth scope, as defined in RFC 6749.

OAuth scopes may only contain:

  • \x21 (!)
  • Characters in the range \x23 (#) to \x5B ([)
  • Characters in the range \x5D (]) to \x7E (~)