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 handles authentication requests for the assertoor web UI.
func NewAuthHandler ¶
NewAuthHandler creates a new authentication handler.
func (*Handler) GetLogin ¶
func (h *Handler) GetLogin(w http.ResponseWriter, r *http.Request)
GetLogin redirects to the index page.
func (*Handler) GetToken ¶
func (h *Handler) GetToken(w http.ResponseWriter, r *http.Request)
GetToken handles the authentication request.
func (*Handler) GetTokenSubject ¶ added in v1.1.17
GetTokenSubject extracts the subject claim from the authorization header's JWT token. Returns an empty string if the token is missing, invalid, or has no subject.
Click to show internal directories.
Click to hide internal directories.