Documentation ¶
Index ¶
- func GetAllowExpiredCert() bool
- func RoleHandler(minRole rbac.Role, f func(p periHttp.PeriHttp)) 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllowExpiredCert ¶
func GetAllowExpiredCert() bool
func SetAllowExpiredCert ¶
func SetAllowExpiredCert(allow bool)
func SetAuthMethod ¶
func SetAuthMethod(method AuthMethod)
func SetCheckCert ¶
func VerifyCertificates ¶
func VerifyCertificates(clientCertificates []*x509.Certificate) (role rbac.Role, err error)
func VerifyCertificatesWithoutRole ¶
func VerifyCertificatesWithoutRole(clientCertificates []*x509.Certificate) (err error)
Types ¶
type AuthMethod ¶
type AuthMethod string
const ( NONE AuthMethod = "NONE" API_KEY AuthMethod = "API_KEY" MTLS AuthMethod = "mTLS" )
func GetAuthMethod ¶
func GetAuthMethod() AuthMethod
Click to show internal directories.
Click to hide internal directories.