Versions in this module Expand all Collapse all v1 v1.0.0 Apr 23, 2024 Changes in this version + func GetAllowExpiredCert() bool + func GetRole(r *http.Request) (rbac.Role, error) + func IsAuthorized(r *http.Request, role rbac.Role) (bool, error) + func RoleHandler(role rbac.Role, f func(http.ResponseWriter, *http.Request)) http.Handler + func SetAllowExpiredCert(allow bool) + func SetAuthMethod(method AuthMethod) + func SetCheckCert(caCerts *x509.CertPool) + func VerifyCertificates(clientCertificates []*x509.Certificate) (role rbac.Role, err error) + func VerifyCertificatesWithoutRole(clientCertificates []*x509.Certificate) (err error) + type AuthMethod string + const API_KEY + const MTLS + const NONE + func GetAuthMethod() AuthMethod