authorizationcode

package
v0.48.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 = `` /* 4821-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 timeouts.StorageLifetime) fositeoauth2.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 *corev1.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