# Functions
AddClaimHandler is a middleware that fills in GraphQL-friendly privilege information on the *TelemetryClaim object in the context.
AllOfPrivilegeCheck checks if the claim set in the context includes the required privileges.
ErrorHandler is a custom error handler for the jwt middleware.
NewJWTMiddleware creates a new JWT middleware with the given issuer and contract address.
No description provided by the author
NewMockIdentityService creates a new mock instance.
No description provided by the author
OneOfPrivilegeCheck checks if the claim set in the context includes at least one of the required privileges.
# Structs
MockIdentityService is a mock of IdentityService interface.
MockIdentityServiceMockRecorder is the mock recorder for MockIdentityService.
TelemetryClaim is a custom claim for the telemetry API.
TelemetryClaimContextKey is a custom key for the context to store the custom claims.
No description provided by the author
No description provided by the author
# Interfaces
go:generate mockgen -source=./auth.go -destination=auth_mocks.go -package=auth.