apiserver: k8s.io/apiserver/plugin/pkg/authenticator/password/passwordfile Index | Files

package passwordfile

import "k8s.io/apiserver/plugin/pkg/authenticator/password/passwordfile"


Package Files


type PasswordAuthenticator Uses

type PasswordAuthenticator struct {
    // contains filtered or unexported fields

func NewCSV Uses

func NewCSV(path string) (*PasswordAuthenticator, error)

NewCSV returns a PasswordAuthenticator, populated from a CSV file. The CSV file must contain records in the format "password,username,useruid"

func (*PasswordAuthenticator) AuthenticatePassword Uses

func (a *PasswordAuthenticator) AuthenticatePassword(ctx context.Context, username, password string) (*authenticator.Response, bool, error)

Package passwordfile imports 10 packages (graph) and is imported by 80 packages. Updated 2019-08-14. Refresh now. Tools for package owners.