{"modulePath":"github.phpd.cn/openshift/origin","version":"v3.8.0+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package headerrequest\n\n## Types\n\n```go\ntype Authenticator struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewAuthenticator(providerName string, config *Config, mapper authapi.UserIdentityMapper) *Authenticator\n```\n\n```go\nfunc (a *Authenticator) AuthenticateRequest(req *http.Request) (user.Info, bool, error)\n```\n\n```go\ntype Config struct {\n\t// IDHeaders lists the headers to check (in order, case-insensitively) for an identity. The first header with a value wins.\n\tIDHeaders []string\n\t// NameHeaders lists the headers to check (in order, case-insensitively) for a display name. The first header with a value wins.\n\tNameHeaders []string\n\t// PreferredUsernameHeaders lists the headers to check (in order, case-insensitively) for a preferred username. The first header with a value wins. If empty, the ID is used\n\tPreferredUsernameHeaders []string\n\t// EmailHeaders lists the headers to check (in order, case-insensitively) for an email address. The first header with a value wins.\n\tEmailHeaders []string\n}\n```\n\n```go\nfunc NewDefaultConfig() *Config\n```\n\n","path":"github.phpd.cn/openshift/origin/pkg/auth/authenticator/request/headerrequest","name":"headerrequest","synopsis":"","isRedistributable":true}
