MCPcopy Create free account
hub / github.com/Harshitk-cp/engram / ResolveSessionAuth

Method ResolveSessionAuth

internal/api/middleware/auth.go:28–28  ·  view source on GitHub ↗
(ctx context.Context, rawToken string)

Source from the content-addressed store, hash-verified

26// Implemented by the control-plane AuthService.
27type SessionResolver interface {
28 ResolveSessionAuth(ctx context.Context, rawToken string) (*domain.APIKeyAuth, error)
29}
30
31func TenantFromContext(ctx context.Context) *domain.Tenant {

Callers 1

SessionOrAPIKeyFunction · 0.65

Implementers 1

AuthServiceinternal/service/auth.go

Calls

no outgoing calls

Tested by

no test coverage detected