Help us shape the future of Go! Take the 2026 Go Developer Survey

authorization

package
v0.3.61 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHTTPAuthenticationScheme

func GetHTTPAuthenticationScheme(r *http.Request) (string, string, error)

GetHTTPAuthenticationScheme grabs the scheme and token from the HTTP Authorization header.

Types

type Authenticator

type Authenticator struct {

	// OAuth2 is the oauth2 deletgating authenticator.
	OAuth2 *oauth2.Authenticator

	// Keystone provides OpenStack authentication.
	Keystone *keystone.Authenticator
	// contains filtered or unexported fields
}

Authenticator provides Keystone authentication functionality.

func NewAuthenticator

func NewAuthenticator(issuer *jose.JWTIssuer, oauth2 *oauth2.Authenticator, keystone *keystone.Authenticator) *Authenticator

NewAuthenticator returns a new authenticator with required fields populated. You must call AddFlags after this.

func (*Authenticator) JWKS

func (a *Authenticator) JWKS() (interface{}, error)

func (*Authenticator) Token

Token performs token based authentication against Keystone with a scope, and returns a new token. Used to upgrade from unscoped, or to refresh a token.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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