omniauth-test 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/omniauth/strategies/test.rb +4 -3
- data/lib/omniauth/test/version.rb +1 -1
- metadata +1 -1
@@ -6,13 +6,14 @@ module OmniAuth
|
|
6
6
|
class Test < OmniAuth::Strategies::OAuth
|
7
7
|
option :name, 'Test'
|
8
8
|
|
9
|
-
option :client_options, {:authorize_path => '
|
10
|
-
:site => '
|
9
|
+
option :client_options, {:authorize_path => 'http://auth.cibplus.com/oauth/authorize',
|
10
|
+
:site => 'http://auth.cibplus.com',
|
11
11
|
:proxy => ENV['http_proxy'] ? URI(ENV['http_proxy']) : nil}
|
12
12
|
|
13
13
|
uid { access_token.params[:user_id] }
|
14
14
|
|
15
15
|
info do
|
16
|
+
|
16
17
|
{
|
17
18
|
:nickname => raw_info['screen_name'],
|
18
19
|
:name => raw_info['name'],
|
@@ -21,7 +22,7 @@ module OmniAuth
|
|
21
22
|
:description => raw_info['description'],
|
22
23
|
:urls => {
|
23
24
|
'Website' => raw_info['url'],
|
24
|
-
'Test' => "
|
25
|
+
'Test' => "http://auth.cibplus.com/#{raw_info['screen_name']}",
|
25
26
|
}
|
26
27
|
}
|
27
28
|
end
|