Home
last modified time | relevance | path

Searched defs:MockOAuthDatastore (Results 1 – 1 of 1) sorted by relevance

/dports/www/writefreely/writefreely-0.13.1/
H A Doauth_test.go34 type MockOAuthDatastore struct { struct
35 DoGenerateOAuthState func(context.Context, string, string, int64, string) (string, error)
36 DoValidateOAuthState func(context.Context, string) (string, string, int64, string, error)
37 DoGetIDForRemoteUser func(context.Context, string, string, string) (int64, error)
38 DoCreateUser func(*config.Config, *User, string) error
39 DoRecordRemoteUserID func(context.Context, int64, string, string, string, string) error
40 DoGetUserByID func(int64) (*User, error)
99 …ore) ValidateOAuthState(ctx context.Context, state string) (string, string, int64, string, error) {
106 …) GetIDForRemoteUser(ctx context.Context, remoteUserID, provider, clientID string) (int64, error) {
113 … *MockOAuthDatastore) CreateUser(cfg *config.Config, u *User, username, description string) error {
[all …]