2018-04-18 10:03:27 -04:00
|
|
|
module Gitlab
|
|
|
|
module Auth
|
|
|
|
class OmniauthIdentityLinkerBase
|
|
|
|
attr_reader :current_user, :oauth
|
|
|
|
|
|
|
|
def initialize(current_user, oauth)
|
|
|
|
@current_user = current_user
|
|
|
|
@oauth = oauth
|
|
|
|
@created = false
|
|
|
|
end
|
|
|
|
|
|
|
|
def created?
|
|
|
|
@created
|
|
|
|
end
|
|
|
|
|
2018-04-22 14:08:08 -04:00
|
|
|
def error_message
|
|
|
|
''
|
|
|
|
end
|
|
|
|
|
2018-04-18 10:03:27 -04:00
|
|
|
def create_or_update
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|