summaryrefslogtreecommitdiff
path: root/lib/gitlab/auth/o_auth/authentication.rb
blob: d4e7f35c857f6b81f7c9b534ebca16b3387fb915 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# These calls help to authenticate to OAuth provider by providing username and password
#

module Gitlab
  module Auth
    module OAuth
      class Authentication
        attr_reader :provider, :user

        def initialize(provider, user = nil)
          @provider = provider
          @user = user
        end

        # Implementation must return user object if login successful
        def login(login, password)
          raise NotImplementedError
        end
      end
    end
  end
end