Documentation
¶
Index ¶
Constants ¶
View Source
const ( IssuerEnvironment = "NEKIRO_AGENT_ROUTER_ISSUER" AudienceEnvironment = "NEKIRO_AGENT_ROUTER_AUDIENCE" KeyIDEnvironment = "NEKIRO_AGENT_ROUTER_KEY_ID" PublicKeyEnvironment = "NEKIRO_AGENT_ROUTER_PUBLIC_KEY_BASE64URL" )
Variables ¶
This section is empty.
Functions ¶
func ClaimsFromContext ¶
func ClaimsFromContext(ctx context.Context) (contracts.RouterInvocationCredentialClaimsV1, bool)
Types ¶
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
func NewMiddleware ¶
func NewMiddleware(config Config, now func() time.Time) (*Middleware, error)
type ReplayGuard ¶
type ReplayGuard struct {
// contains filtered or unexported fields
}
func NewReplayGuard ¶
func NewReplayGuard(now func() time.Time) (*ReplayGuard, error)
Click to show internal directories.
Click to hide internal directories.