Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TykGRPCAdapter ¶
type TykGRPCAdapter struct {
// contains filtered or unexported fields
}
TykGrpcAdapter supports authorization template.
func NewTykGrpcAdapter ¶
func NewTykGrpcAdapter(addr string) (*TykGRPCAdapter, error)
TODO: extend config inputs
func (*TykGRPCAdapter) Addr ¶
func (s *TykGRPCAdapter) Addr() string
Addr returns the listening address of the server
func (*TykGRPCAdapter) Close ¶
func (s *TykGRPCAdapter) Close() error
Close gracefully shuts down the server; used for testing
func (*TykGRPCAdapter) HandleAuthorization ¶
func (s *TykGRPCAdapter) HandleAuthorization(ctx context.Context, r *authorization.HandleAuthorizationRequest) (*v1beta1.CheckResult, error)
HandleAuthorization handles receiving an auth header from mixer and sending it to a Tyk Gateway for policy validation TODO The API Key can be a valid JWT with a corresponding API setup in Tyk TODO see: https://tyk.io/docs/basic-config-and-security/security/your-apis/json-web-tokens/ The key may be a plain bearer token but it needs to have been issued the Tyk Management Dashboard
func (*TykGRPCAdapter) Run ¶
func (s *TykGRPCAdapter) Run(shutdown chan error)
Run starts the server run
Click to show internal directories.
Click to hide internal directories.