pam_issuer_server

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2026 License: Apache-2.0 Imports: 21 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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)

func (*Handler) Close

func (h *Handler) Close()

Close cleans up resources. It is safe to call multiple times (idempotent).

func (*Handler) Run

func (h *Handler) Run(ctx context.Context) error

Run starts the background cleanup goroutine

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(
	log logrus.FieldLogger,
	cfg *config.Config,
	ca *crypto.CAClient,
	listener net.Listener,
) *Server

New returns a new instance of a PAM issuer server.

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL