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

Function static_credential

crates/openshell-server/src/grpc/provider.rs:3084–3097  ·  view source on GitHub ↗
(name: &str, env_var: &str, required: bool)

Source from the content-addressed store, hash-verified

3082 }
3083
3084 fn static_credential(name: &str, env_var: &str, required: bool) -> ProviderProfileCredential {
3085 ProviderProfileCredential {
3086 name: name.to_string(),
3087 description: String::new(),
3088 env_vars: vec![env_var.to_string()],
3089 required,
3090 auth_style: "bearer".to_string(),
3091 header_name: "authorization".to_string(),
3092 query_param: String::new(),
3093 refresh: None,
3094 path_template: String::new(),
3095 token_grant: None,
3096 }
3097 }
3098
3099 fn token_grant_credential(name: &str) -> ProviderProfileCredential {
3100 ProviderProfileCredential {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected