oidc4vpnoncestore

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: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TxNonceStore

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

TxNonceStore stores oidc transactions in mongo.

func New

func New(mongoClient *mongodb.Client, ttlSec int32) (*TxNonceStore, error)

New creates TxNonceStore.

func (*TxNonceStore) GetAndDelete

func (ts *TxNonceStore) GetAndDelete(nonce string) (oidc4vp.TxID, bool, error)

GetAndDelete get and then delete transaction by one time token.

func (*TxNonceStore) SetIfNotExist

func (ts *TxNonceStore) SetIfNotExist(nonce string, profileNonceStoreDataTTL int32, txID oidc4vp.TxID) (bool, error)

SetIfNotExist stores transaction if key not exists et.

Jump to

Keyboard shortcuts

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