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: 0

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