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 +4 -4
- data/CHANGELOG.md +3 -3
- data/README.md +1 -3
- data/lib/omniauth-tanita/version.rb +1 -1
- data/lib/omniauth/strategies/tanita.rb +4 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67c71fcde1ded3c9d27fb26a1028a8fd37683a2a37ec4c87c0f67a8216ab4d5b
|
4
|
+
data.tar.gz: 9eb356c3eebaf921f90d02a3b156ca190635ceebe773ef11ad01329d6ae19de7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e61a27ed02d3d991857afbac59c0f5c97702d9eb7afb4d7600b59eccafcf6501b489c94c2b9d9adf7117d746106c6c99224c010542e67216009b8d96d32e2a6c
|
7
|
+
data.tar.gz: ba7cc7f0c09f351a0fd45c75b5d834e51d3ac1ed389c211d744d0da9ece37ee80f98aa4450f6b6af34299daa7c75c364e0bd4e8f19688c07e9af3446851210e2
|
data/CHANGELOG.md
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# 0.2.0
|
2
2
|
|
3
|
-
|
3
|
+
- set default `provider_ignores_state` to true
|
4
4
|
|
5
5
|
# 0.1.1
|
6
6
|
|
7
|
-
|
7
|
+
- Update dependent library 'tanita-api-client' to v0.2.3
|
8
8
|
|
9
9
|
# 0.1.0
|
10
10
|
|
11
|
-
|
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
|
|
@@ -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
|
-
|
21
|
-
|
22
|
-
|
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.
|
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-
|
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.
|
129
|
+
rubygems_version: 3.1.3
|
130
130
|
signing_key:
|
131
131
|
specification_version: 4
|
132
132
|
summary: OmniAuth strategy for Tanita Health Planet
|