tokens

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StoreName is the name of the token store.
	StoreName = "edgeagent_tks"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store holds UserTokens.

func NewStore

func NewStore(p ariesstorage.Provider) (*Store, error)

NewStore returns a new token Store.

func (*Store) Get

func (s *Store) Get(sub string) (*UserTokens, error)

Get fetches a UserTokens from the underlying storage.

func (*Store) Save

func (s *Store) Save(ut *UserTokens) error

Save the UserTokens to the store.

type UserTokens

type UserTokens struct {
	UserSub string
	Access  string
	Refresh string
}

UserTokens are the tokens associated to a User.

Jump to

Keyboard shortcuts

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