omniauth-zaif 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/omniauth/strategies/zaif.rb +4 -1
- data/lib/omniauth-zaif/version.rb +1 -1
- data/spec/omniauth/strategies/zaif_spec.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2d978ea69e657ff0408bb87aa5069bafb1eb369d
|
|
4
|
+
data.tar.gz: c2a7aec5b4876622256e536e39c8d8831c5233ab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fee0a9c123d026cd4990cbd264349a2dce1c451ca292a85b663af16b3f986ce43d4db8e95198ece496e14ec1a709c73d76d977716cacf5ec62ca7970044fde69
|
|
7
|
+
data.tar.gz: 7bf848e7374c595c24e2f97761ad15476449559b282cec4e1af568c5329993ec6889f325452c8cc0edc2d02ce88204f7287baf52e42dac319da9ce80396759bc
|
data/Gemfile.lock
CHANGED
|
@@ -46,7 +46,10 @@ module OmniAuth
|
|
|
46
46
|
|
|
47
47
|
raise "failed to execute get_id_info. http status code: #{res.code}" unless res.code.to_i == 200
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
res = JSON.load(res.body)
|
|
50
|
+
raise "failed to execute get_id_info. error: #{res['error']}" unless res['success'] == 1
|
|
51
|
+
|
|
52
|
+
@raw_info = res['return']['user']
|
|
50
53
|
end
|
|
51
54
|
end
|
|
52
55
|
end
|
|
@@ -22,11 +22,11 @@ describe OmniAuth::Strategies::Zaif do
|
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
it 'should have correct authorize url' do
|
|
25
|
-
expect(subject.options.client_options.authorize_url).to eq('/oauth')
|
|
25
|
+
expect(subject.options.client_options.authorize_url).to eq('https://zaif.jp/oauth')
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
it 'should have correct token url' do
|
|
29
|
-
expect(subject.options.client_options.token_url).to eq('/v1/token')
|
|
29
|
+
expect(subject.options.client_options.token_url).to eq('https://oauth.zaif.jp/v1/token')
|
|
30
30
|
end
|
|
31
31
|
end
|
|
32
32
|
|