Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExampleCalloutService ¶
type ExampleCalloutService struct { server.GRPCCalloutService PublicKey []byte }
ExampleCalloutService implements JWT authentication by processing request headers.
func NewExampleCalloutService ¶
func NewExampleCalloutService() *ExampleCalloutService
NewExampleCalloutService creates a new instance of ExampleCalloutService with the default public key path.
func NewExampleCalloutServiceWithKeyPath ¶
func NewExampleCalloutServiceWithKeyPath(keyPath string) *ExampleCalloutService
NewExampleCalloutServiceWithKeyPath creates a new instance of ExampleCalloutService with the specified public key path.
func (*ExampleCalloutService) HandleRequestHeaders ¶
func (s *ExampleCalloutService) HandleRequestHeaders(headers *extproc.HttpHeaders) (*extproc.ProcessingResponse, error)
HandleRequestHeaders processes the request headers, validates the JWT token, and adds decoded claims to the headers.
func (*ExampleCalloutService) LoadPublicKey ¶
func (s *ExampleCalloutService) LoadPublicKey(path string)
LoadPublicKey loads the public key from the specified file path.
Click to show internal directories.
Click to hide internal directories.