Documentation ¶
Index ¶
- Constants
- type Provider
- func (p *Provider) Authenticate(ctx context.Context, username, password string) (*corev2.Claims, error)
- func (p *Provider) GetObjectMeta() corev2.ObjectMeta
- func (p *Provider) Name() string
- func (p *Provider) Refresh(ctx context.Context, providerClaims corev2.AuthProviderClaims) (*corev2.Claims, error)
- func (p *Provider) SetNamespace(namespace string)
- func (p *Provider) StorePrefix() string
- func (p *Provider) Type() string
- func (p *Provider) URIPath() string
- func (p *Provider) Validate() error
Constants ¶
View Source
const Type = "basic"
Type represents the type of the basic authentication provider
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct { Store store.Store // ObjectMeta contains the name, namespace, labels and annotations corev2.ObjectMeta `json:"metadata"` }
Provider represents the basic internal authentication provider
func (*Provider) Authenticate ¶
func (p *Provider) Authenticate(ctx context.Context, username, password string) (*corev2.Claims, error)
Authenticate a user, with the provided credentials, against the Sensu store
func (*Provider) GetObjectMeta ¶
func (p *Provider) GetObjectMeta() corev2.ObjectMeta
GetObjectMeta returns the provider metadata
func (*Provider) Refresh ¶
func (p *Provider) Refresh(ctx context.Context, providerClaims corev2.AuthProviderClaims) (*corev2.Claims, error)
Refresh the claims of a user
func (*Provider) SetNamespace ¶
SetNamespace sets the namespace of the resource.
func (*Provider) StorePrefix ¶
StorePrefix returns the path prefix to the provider in the store. Not implemented
Click to show internal directories.
Click to hide internal directories.