oidcceremony

package
v0.11.19 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(m manipulate.Manipulator, state string) error

Delete deletes the items with the given state.

func GenerateNonce

func GenerateNonce(nonceSourceSize int) (string, error)

GenerateNonce generate a nonce.

func MakeOIDCProviderClient

func MakeOIDCProviderClient(ca string) (*http.Client, error)

MakeOIDCProviderClient returns a OIDC client using the given CA.

func RedirectErrorEventually

func RedirectErrorEventually(ctx bahamut.Context, url string, err error) error

RedirectErrorEventually will configure the redirect url if given for the given bahamut.Context

func Set

func Set(m manipulate.Manipulator, item *CacheItem) error

Set sets the given OIDCRequestItem in redis.

Types

type CacheItem

type CacheItem struct {
	State            string        `bson:"state"`
	ClientID         string        `bson:"clientid"`
	CA               string        `bson:"ca"`
	OAuth2Config     oauth2.Config `bson:"oauth2config"`
	ProviderEndpoint string        `bson:"providerEndpoint"`
	Time             time.Time     `bson:"time"`
}

CacheItem represents a cache OIDC request info.

func Get

func Get(m manipulate.Manipulator, state string) (*CacheItem, error)

Get gets the items with the given state. If none is found, it will return nil.

Jump to

Keyboard shortcuts

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