package keystone

import "k8s.io/kubernetes/plugin/pkg/auth/authenticator/password/keystone"

Package keystone provides authentication via keystone. For details about keystone and how to use the plugin, refer to https://github.com/kubernetes/kubernetes.github.io/blob/master/docs/admin/authentication.md

Index

Types

type KeystoneAuthenticator

type KeystoneAuthenticator struct {
	// contains filtered or unexported fields
}

KeystoneAuthenticator contacts openstack keystone to validate user's credentials passed in the request. The keystone endpoint is passed during apiserver startup

func NewKeystoneAuthenticator

func NewKeystoneAuthenticator(authURL string, caFile string) (*KeystoneAuthenticator, error)

NewKeystoneAuthenticator returns a password authenticator that validates credentials using openstack keystone

func (*KeystoneAuthenticator) AuthenticatePassword

func (keystoneAuthenticator *KeystoneAuthenticator) AuthenticatePassword(username string, password string) (user.Info, bool, error)

AuthenticatePassword checks the username, password via keystone call

func (*KeystoneAuthenticator) AuthenticatedClient

func (keystoneAuthenticator *KeystoneAuthenticator) AuthenticatedClient(options gophercloud.AuthOptions) (*gophercloud.ProviderClient, error)

AuthenticatedClient logs in to an OpenStack cloud found at the identity endpoint specified by options, acquires a token, and returns a Client instance that's ready to operate.

Source Files

doc.go keystone.go

Version
v1.5.2
Published
Jan 12, 2017
Platform
linux/amd64
Imports
10 packages
Last checked
2 hours ago

Tools for package owners.