omniauth-freee 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/omniauth-freee/version.rb +1 -1
- data/lib/omniauth/strategies/freee.rb +2 -2
- data/spec/omniauth/strategies/freee_spec.rb +2 -2
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c3f19abd0ff445e08d56c8a038b942b119d6072088eb61b9553bb56fec7738c7
|
4
|
+
data.tar.gz: 90084cdaa53c0bd63b00227e64016dd932e8040e8f5ac2f0b8b7431be682056f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3ebaa6024c2092dcf758e991d3360f05bbaf113313131a2e8ac1cbbe1c4b69a669546daa96d4d6f2df6e8993e8a94d970feab0a29d3ef12e392b88669e27bc3
|
7
|
+
data.tar.gz: b90942e9267e807fc6b30e150abcff29714452399078db00af450f524974e7ee2b77ae7552a7c4620af75dd6a7f5bb21ae1ac0936df83383254a9ea13d40be31
|
@@ -6,8 +6,8 @@ module OmniAuth
|
|
6
6
|
class Freee < OmniAuth::Strategies::OAuth2
|
7
7
|
option :client_options, {
|
8
8
|
:site => 'https://api.freee.co.jp',
|
9
|
-
:authorize_url => 'https://secure.freee.co.jp/
|
10
|
-
:token_url => 'https://
|
9
|
+
:authorize_url => 'https://accounts.secure.freee.co.jp/public_api/authorize',
|
10
|
+
:token_url => 'https://accounts.secure.freee.co.jp/public_api/token'
|
11
11
|
}
|
12
12
|
|
13
13
|
uid { raw_info['user']['email'].to_s }
|
@@ -34,11 +34,11 @@ describe OmniAuth::Strategies::Freee do
|
|
34
34
|
end
|
35
35
|
|
36
36
|
it 'should have correct authorize url' do
|
37
|
-
expect(subject.options.client_options.authorize_url).to eq('https://secure.freee.co.jp/
|
37
|
+
expect(subject.options.client_options.authorize_url).to eq('https://accounts.secure.freee.co.jp/public_api/authorize')
|
38
38
|
end
|
39
39
|
|
40
40
|
it 'should have correct token url' do
|
41
|
-
expect(subject.options.client_options.token_url).to eq('https://
|
41
|
+
expect(subject.options.client_options.token_url).to eq('https://accounts.secure.freee.co.jp/public_api/token')
|
42
42
|
end
|
43
43
|
|
44
44
|
describe 'should be overrideable' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-freee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Keigo Kanazawa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
@@ -140,8 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
140
|
- !ruby/object:Gem::Version
|
141
141
|
version: '0'
|
142
142
|
requirements: []
|
143
|
-
|
144
|
-
rubygems_version: 2.6.13
|
143
|
+
rubygems_version: 3.0.3
|
145
144
|
signing_key:
|
146
145
|
specification_version: 4
|
147
146
|
summary: Unofficial OmniAuth strategy for Freee.
|