Skip to main content

granted_scopes

Function granted_scopes 

Source
pub fn granted_scopes(
    token_response: &Value,
    requested: &[String],
) -> Vec<String>
Expand description

The scopes a token response granted. Google, Microsoft and Slack separate them with spaces, GitHub with commas. RFC 6749 §5.1 lets a server omit scope when it granted exactly what was asked, so then it is requested.