Documentation
¶
Index ¶
- func NewOIDCHandler(h http.HandlerFunc, tenantID string, clientID string) http.Handler
- type Client
- func (client *Client) AzadKubeProxyHandler(ctx context.Context, p *httputil.ReverseProxy) func(http.ResponseWriter, *http.Request)
- func (client *Client) ErrorHandler(ctx context.Context) func(w http.ResponseWriter, r *http.Request, err error)
- func (client *Client) LivenessHandler(ctx context.Context) func(http.ResponseWriter, *http.Request)
- func (client *Client) ReadinessHandler(ctx context.Context) func(http.ResponseWriter, *http.Request)
- type ClientInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOIDCHandler ¶ added in v0.0.27
NewOIDCHandler returns a http.Handler to take care of the JWT validation
Types ¶
type Client ¶
type Client struct { CacheClient cache.ClientInterface UserClient user.ClientInterface HealthClient health.ClientInterface // contains filtered or unexported fields }
Client ...
func (*Client) AzadKubeProxyHandler ¶
func (client *Client) AzadKubeProxyHandler(ctx context.Context, p *httputil.ReverseProxy) func(http.ResponseWriter, *http.Request)
AzadKubeProxyHandler ...
func (*Client) ErrorHandler ¶
func (client *Client) ErrorHandler(ctx context.Context) func(w http.ResponseWriter, r *http.Request, err error)
ErrorHandler ...
func (*Client) LivenessHandler ¶
LivenessHandler ...
func (*Client) ReadinessHandler ¶
func (client *Client) ReadinessHandler(ctx context.Context) func(http.ResponseWriter, *http.Request)
ReadinessHandler ...
type ClientInterface ¶
type ClientInterface interface { ReadinessHandler(ctx context.Context) func(http.ResponseWriter, *http.Request) LivenessHandler(ctx context.Context) func(http.ResponseWriter, *http.Request) AzadKubeProxyHandler(ctx context.Context, p *httputil.ReverseProxy) func(http.ResponseWriter, *http.Request) ErrorHandler(ctx context.Context) func(w http.ResponseWriter, r *http.Request, err error) }
ClientInterface ...
func NewHandlersClient ¶
func NewHandlersClient(ctx context.Context, cfg *config.Config, cacheClient cache.ClientInterface, userClient user.ClientInterface, healthClient health.ClientInterface) (ClientInterface, error)
NewHandlersClient ...
Click to show internal directories.
Click to hide internal directories.