Documentation
¶
Overview ¶
Package handler implements handler routes for auth webhooks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HasuraDDNAuthHookHandler ¶
type HasuraDDNAuthHookHandler struct {
// contains filtered or unexported fields
}
HasuraDDNAuthHookHandler implements HTTP handlers for Hasura DDN auth webhook.
func NewHasuraDDNAuthHookHandler ¶
func NewHasuraDDNAuthHookHandler(authenticator authmode.Authenticator) *HasuraDDNAuthHookHandler
NewHasuraDDNAuthHookHandler creates a ddn auth hook handler instance.
func (*HasuraDDNAuthHookHandler) Get ¶
func (handler *HasuraDDNAuthHookHandler) Get(w http.ResponseWriter, r *http.Request)
Get handles the auth hook with GET method.
func (*HasuraDDNAuthHookHandler) Post ¶
func (handler *HasuraDDNAuthHookHandler) Post(w http.ResponseWriter, r *http.Request)
Post handles the auth hook with POST method.
type HasuraGraphQLEngineAuthHookHandler ¶
type HasuraGraphQLEngineAuthHookHandler struct {
// contains filtered or unexported fields
}
HasuraGraphQLEngineAuthHookHandler implements an HTTP handler for auth webhook of Hasura GraphQL Engine v1 and v2.
func NewHasuraGraphQLEngineAuthHookHandler ¶
func NewHasuraGraphQLEngineAuthHookHandler( authenticator authmode.Authenticator, ) *HasuraGraphQLEngineAuthHookHandler
NewHasuraGraphQLEngineAuthHookHandler creates a auth hook handler for Hasura GraphQL Engine v1 and v2.
func (*HasuraGraphQLEngineAuthHookHandler) Get ¶
func (handler *HasuraGraphQLEngineAuthHookHandler) Get(w http.ResponseWriter, r *http.Request)
Get handles the auth hook with GET method.
func (*HasuraGraphQLEngineAuthHookHandler) Post ¶
func (handler *HasuraGraphQLEngineAuthHookHandler) Post(w http.ResponseWriter, r *http.Request)
Post handles the auth hook with POST method.
Click to show internal directories.
Click to hide internal directories.