22 lines
493 B
Ruby
22 lines
493 B
Ruby
# 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
|