Lines Matching defs:MockOAuthDatastore
34 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 {
121 …x context.Context, localUserID int64, remoteUserID, provider, clientID, accessToken string) error {
128 func (m *MockOAuthDatastore) GetUserByID(userID int64) (*User, error) {
136 …Context, provider string, clientID string, attachUserID int64, inviteCode string) (string, error) {