tokenadapter

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BankVaultsStore

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

BankVaultsStore stores user tokens in a Bank-Vaults store.

func NewBankVaultsStore

func NewBankVaultsStore(store auth.TokenStore) BankVaultsStore

NewBankVaultsStore returns a new BankVaultsStore.

func (BankVaultsStore) List

func (s BankVaultsStore) List(ctx context.Context, userID string) ([]token.Token, error)

List lists the tokens in the store.

func (BankVaultsStore) Lookup

func (s BankVaultsStore) Lookup(_ context.Context, userID string, tokenID string) (token.Token, error)

Lookup finds a user token.

func (BankVaultsStore) Revoke

func (s BankVaultsStore) Revoke(_ context.Context, userID string, tokenID string) error

Revoke revokes an access token.

func (BankVaultsStore) Store

func (s BankVaultsStore) Store(ctx context.Context, userID string, tokenID string, name string, expiresAt *time.Time) error

Store stores a token in the persistent secret store.

Jump to

Keyboard shortcuts

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