Documentation ¶
Overview ¶
A minimal UI for simple testing via a UI without Vault
Index ¶
Constants ¶
const ( StaticKeys = iota JWKS OIDCDiscovery OIDCFlow )
Variables ¶
This section is empty.
Functions ¶
func ProviderMap ¶ added in v0.7.0
func ProviderMap() map[string]CustomProvider
ProviderMap returns a map of provider names to custom types
Types ¶
type AzureProvider ¶ added in v0.7.0
type AzureProvider struct {
// contains filtered or unexported fields
}
AzureProvider is used for Azure-specific configuration
func (*AzureProvider) FetchGroups ¶ added in v0.7.0
func (a *AzureProvider) FetchGroups(b *jwtAuthBackend, allClaims map[string]interface{}, role *jwtRole) (interface{}, error)
FetchGroups - custom groups fetching for azure - satisfying GroupsFetcher interface
func (*AzureProvider) Initialize ¶ added in v0.7.0
func (a *AzureProvider) Initialize(jc *jwtConfig) error
Initialize anything in the AzureProvider struct - satisfying the CustomProvider interface
func (*AzureProvider) SensitiveKeys ¶ added in v0.7.0
func (a *AzureProvider) SensitiveKeys() []string
SensitiveKeys - satisfying the CustomProvider interface
type CustomProvider ¶ added in v0.7.0
type CustomProvider interface { // Initialize should validate jwtConfig.ProviderConfig, set internal values // and run any initialization necessary for subsequent calls to interface // functions the provider implements Initialize(*jwtConfig) error // SensitiveKeys returns any fields in a provider's jwtConfig.ProviderConfig // that should be masked or omitted when output SensitiveKeys() []string }
CustomProvider - Any custom provider must implement this interface
func NewProviderConfig ¶ added in v0.7.0
func NewProviderConfig(jc *jwtConfig, providerMap map[string]CustomProvider) (CustomProvider, error)
NewProviderConfig - returns appropriate provider struct if provider_config is specified in jwtConfig. The provider map is provider name -to- instance of a CustomProvider.
type GroupsFetcher ¶ added in v0.7.0
type GroupsFetcher interface { // FetchGroups queries for groups claims during login FetchGroups(*jwtAuthBackend, map[string]interface{}, *jwtRole) (interface{}, error) }
GroupsFetcher - Optional support for custom groups handling