Welcome to mirror list, hosted at ThFree Co, Russian Federation.

omniauth_identity_linker_base.rb « auth « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4ed28d6a8be89efc4caa1c9831d0a3db505464c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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

      def error_message
        ''
      end

      def create_or_update
        raise NotImplementedError
      end
    end
  end
end