authorizationcode

package
Version: v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeLabelValue = "authcode"

	ErrInvalidAuthorizeRequestData    = constable.Error("authorization request data must be present")
	ErrInvalidAuthorizeRequestVersion = constable.Error("authorization request data has wrong version")
)
View Source
const ExpectedAuthorizeCodeSessionJSONFromFuzzing = `` /* 5417-byte string literal not displayed */

ExpectedAuthorizeCodeSessionJSONFromFuzzing is used for round tripping tests. It is exported to allow integration tests to use it.

Variables

This section is empty.

Functions

func New

func New(secrets corev1client.SecretInterface, clock func() time.Time, sessionStorageLifetime time.Duration) oauth2.AuthorizeCodeStorage

Types

type Session added in v0.13.0

type Session struct {
	Active  bool            `json:"active"`
	Request *fosite.Request `json:"request"`
	Version string          `json:"version"`
}

func NewValidEmptyAuthorizeCodeSession

func NewValidEmptyAuthorizeCodeSession() *Session

func ReadFromSecret added in v0.13.0

func ReadFromSecret(secret *v1.Secret) (*Session, error)

ReadFromSecret reads the contents of a Secret as a Session.

Jump to

Keyboard shortcuts

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