Documentation ¶
Index ¶
- Constants
- func GetCommonName(subject string) string
- func GetCountry(subject string) string
- func GetLocality(subject string) string
- func GetOrganization(subject string) string
- func GetOrganizationalUnit(subject string) string
- func GetProvince(subject string) string
- type AuthenticationSession
- type CertificateHeaderParser
- type ValidationHydrator
Constants ¶
View Source
const ( ConnectorTokenHeader string = "Connector-Token" ConnectorTokenQueryParam string = "token" ClientIdFromTokenHeader = "Client-Id-From-Token" ClientIdFromCertificateHeader = "Client-Id-From-Certificate" ClientCertificateHashHeader = "Client-Certificate-Hash" )
Variables ¶
This section is empty.
Functions ¶
func GetCommonName ¶
func GetCountry ¶
func GetLocality ¶
func GetOrganization ¶
func GetOrganizationalUnit ¶
func GetProvince ¶
Types ¶
type AuthenticationSession ¶
type CertificateHeaderParser ¶
type CertificateHeaderParser interface {
GetCertificateData(r *http.Request) (string, string, bool)
}
func NewHeaderParser ¶
func NewHeaderParser(certHeaderName string, csrSubjectConsts certificates.CSRSubjectConsts) CertificateHeaderParser
type ValidationHydrator ¶
type ValidationHydrator interface { ResolveConnectorTokenHeader(w http.ResponseWriter, r *http.Request) ResolveIstioCertHeader(w http.ResponseWriter, r *http.Request) }
func NewValidationHydrator ¶
func NewValidationHydrator(tokenService tokens.Service, certHeaderParser CertificateHeaderParser, revocationList revocation.RevocationListRepository) ValidationHydrator
Source Files ¶
Click to show internal directories.
Click to hide internal directories.