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

Function is_unauthenticated_method

crates/openshell-server/src/auth/oidc.rs:36–41  ·  view source on GitHub ↗

Returns `true` if the method needs no authentication at all.

(path: &str)

Source from the content-addressed store, hash-verified

34
35/// Returns `true` if the method needs no authentication at all.
36pub fn is_unauthenticated_method(path: &str) -> bool {
37 super::method_authz::is_unauthenticated(path)
38 || UNAUTHENTICATED_PREFIXES
39 .iter()
40 .any(|prefix| path.starts_with(prefix))
41}
42
43/// Cached JWKS key set fetched from the OIDC issuer.
44///

Callers 1

callMethod · 0.85

Calls 1

is_unauthenticatedFunction · 0.85

Tested by

no test coverage detected