oidc4cistatestore

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store stores OIDC4CI authorize request/response state in mongo.

func New

func New(ctx context.Context, mongoClient *mongodb.Client, ttlSec int32) (*Store, error)

New creates a new instance of Store.

func (*Store) GetAuthorizeState

func (s *Store) GetAuthorizeState(ctx context.Context, opState string) (*oidc4ci.AuthorizeState, error)

func (*Store) SaveAuthorizeState

func (s *Store) SaveAuthorizeState(
	ctx context.Context,
	profileAuthStateTTL int32,
	opState string,
	data *oidc4ci.AuthorizeState,
) error

Jump to

Keyboard shortcuts

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