Documentation ¶
Index ¶
- func Delete(m manipulate.Manipulator, state string) error
- func GenerateNonce(nonceSourceSize int) (string, error)
- func MakeOIDCProviderClient(ca string) (*http.Client, error)
- func RedirectErrorEventually(ctx bahamut.Context, url string, err error) error
- func Set(m manipulate.Manipulator, item *CacheItem) error
- type CacheItem
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 ¶
GenerateNonce generate a nonce.
func MakeOIDCProviderClient ¶
MakeOIDCProviderClient returns a OIDC client using the given CA.
func RedirectErrorEventually ¶
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.
Click to show internal directories.
Click to hide internal directories.