memdbstore

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 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(_ context.Context, username string, credential []byte) (err error)

func (*InMemoryDB) FetchClientProfile

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

func (*InMemoryDB) FetchUserProfile

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

func (*InMemoryDB) GetClaims

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

func (*InMemoryDB) GetClient

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

func (*InMemoryDB) GetProfileWithAccessTokenSign

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

func (*InMemoryDB) GetProfileWithAuthCodeSign

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

func (*InMemoryDB) GetProfileWithRefreshTokenSign

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

func (*InMemoryDB) InvalidateWithRequestID

func (i *InMemoryDB) InvalidateWithRequestID(_ 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(_ context.Context, reqId string, signatures sdk.ITokenSignatures, 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