Documentation ¶
Overview ¶
Copyright The Linux Foundation and each contributor to CommunityBridge. SPDX-License-Identifier: MIT
Copyright The Linux Foundation and each contributor to CommunityBridge. SPDX-License-Identifier: MIT
Copyright The Linux Foundation and each contributor to CommunityBridge. SPDX-License-Identifier: MIT
Copyright The Linux Foundation and each contributor to CommunityBridge. SPDX-License-Identifier: MIT
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewValidatorMaker ¶
func NewValidatorMaker() *validatorContainer
NewValidatorMaker create a new ValidatorMaker.
Types ¶
type Interfaces ¶
type Interfaces interface {
Handler(context.Context, events.APIGatewayCustomAuthorizerRequest) (events.APIGatewayCustomAuthorizerResponse, error)
}
Interfaces defines an interface to interact with the Interfaces layer
func NewInterfaces ¶
func NewInterfaces(usecases Usecases) Interfaces
NewInterfaces creates an InterfacesInteractor
type TokenValidator ¶
type TokenValidator interface { ValidateRequest(*http.Request) (*jwt.JSONWebToken, error) Claims(*http.Request, *jwt.JSONWebToken, ...interface{}) error }
TokenValidator defines the interface necessary for validating a token and extracting claims from the token
type Usecases ¶
Usecases is an interface for interacting with the authorizer's usecases layer.
func NewUsecases ¶
func NewUsecases(validator TokenValidator) Usecases
NewUsecases create a new usecases
type ValidatorMaker ¶
type ValidatorMaker interface {
NewTokenValidator() (TokenValidator, error)
}
ValidatorMaker is the interface for interacting with the validator layer.