MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / ValidScope

Function ValidScope

internal/identity/store.go:3344–3344  ·  view source on GitHub ↗

ValidScope reports whether s is a known credential scope.

(s string)

Source from the content-addressed store, hash-verified

3342
3343// ValidScope reports whether s is a known credential scope.
3344func ValidScope(s string) bool { return s == ScopeAccount || s == ScopeAgent }
3345
3346// Principal is the authenticated caller resolved from a credential: the owning
3347// user plus the credential's scope and (for agent-scoped credentials) the agent

Callers 3

handleCreateAPIKeyMethod · 0.92
HandleCreateAPIKeyMethod · 0.92
CreateScopedAPIKeyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected