(scopes: Option<&str>)
| 75 | } |
| 76 | |
| 77 | fn build_scopes(scopes: Option<&str>) -> Vec<Scope> { |
| 78 | let mut result = vec![Scope::new("openid".to_string())]; |
| 79 | if let Some(s) = scopes { |
| 80 | for scope in s.split_whitespace() { |
| 81 | if scope != "openid" { |
| 82 | result.push(Scope::new(scope.to_string())); |
| 83 | } |
| 84 | } |
| 85 | } |
| 86 | result |
| 87 | } |
| 88 | |
| 89 | fn build_ci_scopes(scopes: Option<&str>) -> Vec<Scope> { |
| 90 | let Some(s) = scopes else { |