mirror of
https://github.com/omniauth/omniauth.git
synced 2022-11-09 12:31:49 -05:00
Cleanup of a few small things.
This commit is contained in:
parent
cd4af04646
commit
3e5963fde4
3 changed files with 2 additions and 2 deletions
|
@ -24,6 +24,8 @@ OmniAuth currently supports the following external providers:
|
|||
* GitHub
|
||||
* OpenID
|
||||
* Google Apps (via OpenID)
|
||||
* CAS (Central Authentication Service)
|
||||
* LDAP
|
||||
|
||||
## Usage
|
||||
|
||||
|
|
|
@ -34,7 +34,6 @@ module OmniAuth
|
|||
begin
|
||||
@adaptor.bind(:bind_dn => request.POST['username'], :password => request.POST['password'])
|
||||
@user_info = @adaptor.search(:filter => Net::LDAP::Filter.eq(@adaptor.uid, request.POST['username']),:limit => 1)
|
||||
puts @user_info
|
||||
request.POST['auth'] = auth_hash
|
||||
@env['REQUEST_METHOD'] = 'GET'
|
||||
@env['PATH_INFO'] = "#{OmniAuth.config.path_prefix}/#{name}/callback"
|
||||
|
|
|
@ -33,7 +33,6 @@ module OmniAuth
|
|||
'name' => user_hash['name'],
|
||||
'location' => user_hash['location'],
|
||||
'image' => user_hash['profile_image_url'],
|
||||
'screen_name' => user_hash['screen_name'],
|
||||
'description' => user_hash['description'],
|
||||
'urls' => {'Website' => user_hash['url']}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue