Documentation
¶
Index ¶
- type InMemoryDB
- func (i *InMemoryDB) Authenticate(_ context.Context, username string, credential []byte) (err error)
- func (i *InMemoryDB) FetchClientProfile(_ context.Context, username string) sdk.RequestProfile
- func (i *InMemoryDB) FetchUserProfile(_ context.Context, username string) sdk.RequestProfile
- func (i *InMemoryDB) GetClaims(_ context.Context, username string, _ sdk.Arguments, _ []string) (map[string]interface{}, error)
- func (i *InMemoryDB) GetClient(_ context.Context, clientID string) (client sdk.IClient, err error)
- func (i *InMemoryDB) GetProfileWithAccessTokenSign(_ context.Context, signature string) (profile sdk.RequestProfile, reqId string, err error)
- func (i *InMemoryDB) GetProfileWithAuthCodeSign(_ context.Context, signature string) (profile sdk.RequestProfile, reqId string, err error)
- func (i *InMemoryDB) GetProfileWithRefreshTokenSign(_ context.Context, signature string) (profile sdk.RequestProfile, reqId string, err error)
- func (i *InMemoryDB) InvalidateWithRequestID(_ context.Context, reqID string, what uint8) (err error)
- func (i *InMemoryDB) IsConsentRequired(context.Context, string, string, sdk.Arguments) bool
- func (i *InMemoryDB) StoreConsent(context.Context, string, string, sdk.Arguments) error
- func (i *InMemoryDB) StoreTokenProfile(_ context.Context, reqId string, signatures sdk.ITokenSignatures, ...) (err error)
- type TokenTable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemoryDB ¶
func NewInMemoryDB ¶
func NewInMemoryDB(demo bool) *InMemoryDB
func (*InMemoryDB) Authenticate ¶
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) 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 (*InMemoryDB) IsConsentRequired ¶
func (*InMemoryDB) StoreConsent ¶
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
}
Click to show internal directories.
Click to hide internal directories.