omniauth-tanita 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 946c38c34d7ad92b20b4955782976a8ff32e8042099938d9298c0d8ecd90f906
4
- data.tar.gz: 269cbb9f59b08b2268bc5fead4c3d7e12a6e9237d8e99ff3d0d2a77acf78e436
3
+ metadata.gz: 67c71fcde1ded3c9d27fb26a1028a8fd37683a2a37ec4c87c0f67a8216ab4d5b
4
+ data.tar.gz: 9eb356c3eebaf921f90d02a3b156ca190635ceebe773ef11ad01329d6ae19de7
5
5
  SHA512:
6
- metadata.gz: 02b6ae3d721ae1bf00bee8bceb776a217ccdde265a8a49f84d0c7429aa5e1dc38923abeb5c8125153116b967c487db34f80de2f215708a303f84d999c78fd5c2
7
- data.tar.gz: 86b9329105f6dd7d863430c0cf88582b088907076c6608fa8f1730e17fcc9ababb6d78cf2dac7e367a256623916193315c2588bb9daac9e1862ec055e26966eb
6
+ metadata.gz: e61a27ed02d3d991857afbac59c0f5c97702d9eb7afb4d7600b59eccafcf6501b489c94c2b9d9adf7117d746106c6c99224c010542e67216009b8d96d32e2a6c
7
+ data.tar.gz: ba7cc7f0c09f351a0fd45c75b5d834e51d3ac1ed389c211d744d0da9ece37ee80f98aa4450f6b6af34299daa7c75c364e0bd4e8f19688c07e9af3446851210e2
@@ -1,11 +1,11 @@
1
1
  # 0.2.0
2
2
 
3
- * set default `provider_ignores_state` to true
3
+ - set default `provider_ignores_state` to true
4
4
 
5
5
  # 0.1.1
6
6
 
7
- * Update dependent library 'tanita-api-client' to v0.2.3
7
+ - Update dependent library 'tanita-api-client' to v0.2.3
8
8
 
9
9
  # 0.1.0
10
10
 
11
- * Initial release
11
+ - Initial release
data/README.md CHANGED
@@ -4,14 +4,12 @@
4
4
 
5
5
  This gem contains the Tanita Health Planet strategy for OmniAuth.
6
6
 
7
-
8
7
  ## Before You Begin
9
8
 
10
9
  You should have already installed OmniAuth into your app; if not, read the [OmniAuth README](https://github.com/intridea/omniauth) to get started.
11
10
 
12
11
  Now sign into the [Health Planet API Settings page](https://www.healthplanet.jp/apis_account.do) and create an application. Take note of your API keys.
13
12
 
14
-
15
13
  ## Using This Strategy
16
14
 
17
15
  First start by adding this gem to your Gemfile:
@@ -33,8 +31,8 @@ Rails.application.config.middleware.use OmniAuth::Builder do
33
31
  provider :tanita, "API_KEY", "API_SECRET"
34
32
  end
35
33
  ```
36
- Replace `"API_KEY"` and `"API_SECRET"` with the appropriate values you obtained [earlier](https://www.healthplanet.jp/apis_account.do).
37
34
 
35
+ Replace `"API_KEY"` and `"API_SECRET"` with the appropriate values you obtained [earlier](https://www.healthplanet.jp/apis_account.do).
38
36
 
39
37
  ## Scopes
40
38
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Omniauth
4
4
  module Tanita
5
- VERSION = '0.2.1'
5
+ VERSION = '0.2.2'
6
6
  end
7
7
  end
@@ -12,17 +12,16 @@ module OmniAuth
12
12
 
13
13
  option :skip_info, true
14
14
  option :provider_ignores_state, true
15
+ option :scope, TANITA::Scope::INNERSCAN
15
16
 
16
17
  option :client_options, :site => TANITA::BASE_URL,
17
18
  :authorize_url => TANITA::AUTH_URL_PATH,
18
19
  :token_url => TANITA::TOKEN_URL_PATH
19
20
 
20
- option :authorize_options, %i[client_id redirect_uri scope response_type]
21
- option :response_type, 'code'
22
- option :scope, TANITA::Scope::INNERSCAN
21
+ def callback_url
22
+ full_host + script_name + callback_path
23
+ end
23
24
 
24
- option :token_options, %i[client_id client_secret redirect_uri grant_type]
25
- option :grant_type, 'authorization_code'
26
25
  end
27
26
  end
28
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-tanita
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenji Koshikawa
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-02-14 00:00:00.000000000 Z
11
+ date: 2020-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tanita-api-client
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  - !ruby/object:Gem::Version
127
127
  version: '0'
128
128
  requirements: []
129
- rubygems_version: 3.1.2
129
+ rubygems_version: 3.1.3
130
130
  signing_key:
131
131
  specification_version: 4
132
132
  summary: OmniAuth strategy for Tanita Health Planet