debian-mirror-gitlab/lib/gitlab/auth/o_auth/authentication.rb

22 lines
424 B
Ruby
Raw Normal View History

2018-03-27 19:54:05 +05:30
# 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