sso

package
v2.11.4 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const Prefix = "Bearer id_token:"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Issuer       string                  `json:"issuer"`
	ClientID     apiv1.SecretKeySelector `json:"clientId"`
	ClientSecret apiv1.SecretKeySelector `json:"clientSecret"`
	RedirectURL  string                  `json:"redirectUrl"`
}

type Interface

type Interface interface {
	Authorize(ctx context.Context, authorization string) (*jws.ClaimSet, error)
	HandleRedirect(writer http.ResponseWriter, request *http.Request)
	HandleCallback(writer http.ResponseWriter, request *http.Request)
}
var NullSSO Interface = nullService{}

func New

func New(c Config, secretsIf corev1.SecretInterface, baseHRef string, secure bool) (Interface, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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