summaryrefslogtreecommitdiff
path: root/lib/gitlab/auth/o_auth/authentication.rb
blob: ed03b9f8b40b690a3513931518737bad15e08385 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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

        def login(login, password)
          raise NotImplementedError
        end
      end
    end
  end
end