omniauth-htc 0.2.2 → 0.3.3

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: bdb96468b019e3f5a94e88cd7c6b238ff1f50c8bee327d5e4969f06aee7d4a0b
4
- data.tar.gz: ec395d9a488270361cebd486e4ae1801b4bbc245a5b957c46557ee42c3ad7dc6
3
+ metadata.gz: 9e83a3c5bdfae7507350e3914f4c42dc3829265b9c4cd5bd62fad7ba8acea2ff
4
+ data.tar.gz: ba011220bb9d30c7d9ff3de265f51dbe3333edb4a9b065ca7030d376938abf21
5
5
  SHA512:
6
- metadata.gz: 495ff6f43b846c9b722c117430452f09193366f54012e9a99fd5628575de9c8f92f3e7badaf224802ef71d2bec38810beec39aab2fcb91c7ba74162297bd1bee
7
- data.tar.gz: 3a767410bf33ccff62fa1833e3a4b32972bf9b5128d0ba0759ee338b224b51aabfb31e474948e96d547209d466c35c291958eced70b3828b3e2491ca793583c3
6
+ metadata.gz: 32e6b4aad7edb33e4897bfbddcfa617bc47461ad85e90b4248498e33e4b25326d020b396021ad85aeedee8abc2aa8cae57bff0c011308ecb6cf571375b506472
7
+ data.tar.gz: 2b4a62f2da7f080391fc17d6ffbf386fcdb82330ca6a8768ea3d71a7e7eccb655092c641bf87a4717290cf1f764afa05ed210bedb1e26721bf131fac14c3ce46
data/README.md CHANGED
@@ -12,6 +12,8 @@ Rails.application.config.middleware.use OmniAuth::Builder do
12
12
  client_secret: "",
13
13
  redirection_url: ""
14
14
  end
15
+
16
+ OmniAuth.config.allowed_request_methods = %i[get post]
15
17
  ```
16
18
 
17
19
  ## Installation
File without changes
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module Htc
5
- VERSION = "0.2.2"
5
+ VERSION = "0.3.3"
6
6
  end
7
7
  end
@@ -10,7 +10,7 @@ module OmniAuth
10
10
  include OmniAuth::Strategy
11
11
 
12
12
  option :auth_host, "account.htcvive.com"
13
- option :authorize_path, "/SS/api/oauth/v2/authorize"
13
+ option :authorize_path, "/SS/api/oauth/v1/authorize"
14
14
  option :token_path, "/SS/api/oauth/v2/token/authorization-code"
15
15
  option :user_info_host, "account-profile.htcvive.com"
16
16
  option :user_info_path, "/SS/Profiles/v3/Me"
@@ -154,6 +154,7 @@ module OmniAuth
154
154
  str.gsub!(/\A[[:space:]]+/, '')
155
155
  str.gsub!(/[[:space:]]+\z/, '')
156
156
  str.gsub!(/[[:space:]]+/, ' ')
157
+ str
157
158
  end
158
159
  end
159
160
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-htc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Yang
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-19 00:00:00.000000000 Z
11
+ date: 2021-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth
@@ -126,9 +126,9 @@ files:
126
126
  - Rakefile
127
127
  - bin/console
128
128
  - bin/setup
129
+ - lib/omniauth-htc.rb
129
130
  - lib/omniauth/htc/version.rb
130
131
  - lib/omniauth/strategies/htc.rb
131
- - lib/omniauth_htc.rb
132
132
  - omniauth-htc.gemspec
133
133
  homepage: https://github.com/jamesyang124/omniauth-htc
134
134
  licenses: