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.
@@ -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 => 'https://auth.cibplus.com/oauth/authenticate',
10
- :site => 'https://auth.cibplus.com',
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' => "https://twitter.com/#{raw_info['screen_name']}",
25
+ 'Test' => "http://auth.cibplus.com/#{raw_info['screen_name']}",
25
26
  }
26
27
  }
27
28
  end
@@ -1,3 +1,3 @@
1
1
  module OmniauthTest
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: