memdbstore

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryDB

type InMemoryDB struct {
	Db *memdb.MemDB
	// contains filtered or unexported fields
}

func NewInMemoryDB

func NewInMemoryDB(demo bool) *InMemoryDB

func (*InMemoryDB) Authenticate

func (i *InMemoryDB) Authenticate(ctx context.Context, username string, credential []byte) (err error)

func (*InMemoryDB) Configure

func (i *InMemoryDB) Configure(*sdk.Config, ...interface{})

func (*InMemoryDB) FetchClientProfile

func (i *InMemoryDB) FetchClientProfile(ctx context.Context, username string) sdk.RequestProfile

func (*InMemoryDB) FetchUserProfile

func (i *InMemoryDB) FetchUserProfile(ctx context.Context, username string) sdk.RequestProfile

func (*InMemoryDB) GetClaims

func (i *InMemoryDB) GetClaims(context.Context, string, sdk.Arguments, []string) (map[string]interface{}, error)

func (*InMemoryDB) GetClient

func (i *InMemoryDB) GetClient(ctx context.Context, clientID string) (client sdk.IClient, err error)

func (*InMemoryDB) GetProfileWithAccessTokenSign

func (i *InMemoryDB) GetProfileWithAccessTokenSign(ctx context.Context, signature string) (profile sdk.RequestProfile, reqId string, err error)

func (*InMemoryDB) GetProfileWithAuthCodeSign

func (i *InMemoryDB) GetProfileWithAuthCodeSign(ctx context.Context, signature string) (profile sdk.RequestProfile, reqId string, err error)

func (*InMemoryDB) GetProfileWithRefreshTokenSign

func (i *InMemoryDB) GetProfileWithRefreshTokenSign(ctx context.Context, signature string) (profile sdk.RequestProfile, reqId string, err error)

func (*InMemoryDB) InvalidateWithRequestID

func (i *InMemoryDB) InvalidateWithRequestID(ctx context.Context, reqID string, what uint8) (err error)

func (*InMemoryDB) IsConsentRequired

func (i *InMemoryDB) IsConsentRequired(context.Context, string, string, sdk.Arguments) bool

func (*InMemoryDB) StoreConsent

func (i *InMemoryDB) StoreConsent(context.Context, string, string, sdk.Arguments) error

func (*InMemoryDB) StoreTokenProfile

func (i *InMemoryDB) StoreTokenProfile(ctx context.Context, reqId string, signatures sdk.TokenSignatures, profile sdk.RequestProfile) (err error)

type TokenTable

type TokenTable struct {
	RequestID string
	sdk.TokenSignatures
	Profile sdk.RequestProfile
}

Jump to

Keyboard shortcuts

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