Documentation
¶
Index ¶
- type Handler
- func (h *Handler) AuthAuthorize(w http.ResponseWriter, r *http.Request, params pamapi.AuthAuthorizeParams)
- func (h *Handler) AuthJWKS(w http.ResponseWriter, r *http.Request)
- func (h *Handler) AuthLogin(w http.ResponseWriter, r *http.Request, params pamapi.AuthLoginParams)
- func (h *Handler) AuthLoginPost(w http.ResponseWriter, r *http.Request)
- func (h *Handler) AuthOpenIDConfiguration(w http.ResponseWriter, r *http.Request)
- func (h *Handler) AuthToken(w http.ResponseWriter, r *http.Request)
- func (h *Handler) AuthUserInfo(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Close()
- func (h *Handler) Run(ctx context.Context) error
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler implements the PAM issuer API handlers
func NewHandler ¶
func NewHandler( log logrus.FieldLogger, cfg *config.Config, ca *crypto.CAClient, ) (*Handler, error)
NewHandler creates a new PAM issuer handler
func (*Handler) AuthAuthorize ¶
func (h *Handler) AuthAuthorize(w http.ResponseWriter, r *http.Request, params pamapi.AuthAuthorizeParams)
AuthAuthorize handles OAuth2 authorization endpoint (GET /api/v1/auth/authorize)
func (*Handler) AuthJWKS ¶
func (h *Handler) AuthJWKS(w http.ResponseWriter, r *http.Request)
AuthJWKS handles JWKS endpoint (GET /api/v1/auth/jwks)
func (*Handler) AuthLogin ¶
func (h *Handler) AuthLogin(w http.ResponseWriter, r *http.Request, params pamapi.AuthLoginParams)
AuthLogin handles GET request to login form (GET /api/v1/auth/login)
func (*Handler) AuthLoginPost ¶
func (h *Handler) AuthLoginPost(w http.ResponseWriter, r *http.Request)
AuthLoginPost handles POST request to login form (POST /api/v1/auth/login)
func (*Handler) AuthOpenIDConfiguration ¶
func (h *Handler) AuthOpenIDConfiguration(w http.ResponseWriter, r *http.Request)
AuthOpenIDConfiguration handles OpenID Connect discovery endpoint (GET /api/v1/auth/.well-known/openid-configuration)
func (*Handler) AuthToken ¶
func (h *Handler) AuthToken(w http.ResponseWriter, r *http.Request)
AuthToken handles OAuth2 token endpoint (POST /api/v1/auth/token)
func (*Handler) AuthUserInfo ¶
func (h *Handler) AuthUserInfo(w http.ResponseWriter, r *http.Request)
AuthUserInfo handles OIDC UserInfo endpoint (GET /api/v1/auth/userinfo)
Click to show internal directories.
Click to hide internal directories.