Version: v5.10.1+incompatible Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2019 License: MIT, MIT, MIT, + 1 more Imports: 6 Imported by: 0




View Source
const Type = "basic"

Type represents the type of the basic authentication provider


This section is empty.


This section is empty.


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) Name

func (p *Provider) Name() string

Name returns the provider name

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

func (p *Provider) SetNamespace(namespace string)

SetNamespace sets the namespace of the resource.

func (*Provider) StorePrefix

func (p *Provider) StorePrefix() string

StorePrefix returns the path prefix to the provider in the store. Not implemented

func (*Provider) Type

func (p *Provider) Type() string

Type returns the provider type

func (*Provider) URIPath

func (p *Provider) URIPath() string

URIPath returns the path component of the basic provider. Not implemented

func (*Provider) Validate

func (p *Provider) Validate() error

Validate validates the basic provider configuration

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL