Class: Gitlab::Auth::Crowd::Authentication

Inherits:
OAuth::Authentication show all
Defined in:
lib/gitlab/auth/crowd/authentication.rb

Instance Attribute Summary

Attributes inherited from OAuth::Authentication

#provider, #user

Instance Method Summary collapse

Methods inherited from OAuth::Authentication

#initialize

Constructor Details

This class inherits a constructor from Gitlab::Auth::OAuth::Authentication

Instance Method Details

#login(login, password) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/gitlab/auth/crowd/authentication.rb', line 7

def (, password)
  return unless Gitlab::Auth::OAuth::Provider.enabled?(@provider)
  return unless .present? && password.present?

   = (, password)
  return unless &.key?(:user)

  Gitlab::Auth::OAuth::User.find_by_uid_and_provider([:user], provider)
end