MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / refresh_scopes

Function refresh_scopes

crates/openshell-server/src/provider_refresh.rs:609–614  ·  view source on GitHub ↗
(state: &StoredProviderCredentialRefreshState)

Source from the content-addressed store, hash-verified

607}
608
609pub fn refresh_scopes(state: &StoredProviderCredentialRefreshState) -> Vec<String> {
610 if !state.scopes.is_empty() {
611 return state.scopes.clone();
612 }
613 material_scopes(&state.material)
614}
615
616pub fn material_scopes(material: &HashMap<String, String>) -> Vec<String> {
617 material_value(material, &["scope", "scopes"])

Calls 2

material_scopesFunction · 0.85
is_emptyMethod · 0.45

Tested by

no test coverage detected