(scopes: Option<&str>)
| 87 | } |
| 88 | |
| 89 | fn build_ci_scopes(scopes: Option<&str>) -> Vec<Scope> { |
| 90 | let Some(s) = scopes else { |
| 91 | return vec![]; |
| 92 | }; |
| 93 | s.split_whitespace() |
| 94 | .map(|scope| Scope::new(scope.to_string())) |
| 95 | .collect() |
| 96 | } |
| 97 | |
| 98 | /// Run the OIDC Authorization Code + PKCE browser flow. |
| 99 | /// |
no outgoing calls