Documentation ¶
Index ¶
Constants ¶
View Source
const ProviderName = "cert"
ProviderName is identifier for role mapper provider
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // NamesMap is a map of role to X509 Subjects NamesMap map[string][]string `json:"roles" yaml:"roles"` // ValidOrganizations is a list of accepted Organization values from a cert. ValidOrganizations []string `json:"valid_organizations" yaml:"valid_organizations"` // ValidIssuers is a list of accepted root Subject names ValidIssuers []string `json:"valid_issuers" yaml:"valid_issuers"` }
Config provides mapping of Subject Names to Roles
func LoadConfig ¶
LoadConfig returns configuration loaded from a file
type Identity ¶
type Identity struct { // Name of identity Name string `json:"name" yaml:"name"` // Role of identity Role string `json:"role" yaml:"role"` }
Identity of the caller
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider of Cert identity
func (*Provider) Applicable ¶
Applicable returns true if the request has autherization data applicable to the provider
Click to show internal directories.
Click to hide internal directories.