zaikio-oauth_client 0.17.0 → 0.17.1

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: 6a2ab7697b4dc9fc67d8558ae29f3ccff27c56c408c1c900e2331ab027c11bf7
4
- data.tar.gz: b2a2d6424454e99e57a43cbad9762506d13ffd5709e7ca1dee8f1c2c96d7631b
3
+ metadata.gz: 237bdb03b2ab2870ef2c0b9a92c9dac64fb2c67df2bba8e9234831eb14954f42
4
+ data.tar.gz: ae977109316a023585e008e669958775534eef2ecea309ede9b373d44f368fd4
5
5
  SHA512:
6
- metadata.gz: 8dc646a77bc4c31ee4ec0affc44017ebf7dc27cdfbd9c950e2fa6f542c030c82ee3be913f50474cc10f714e3c88132bcd601963170c3a02da05e677e8c2f23f1
7
- data.tar.gz: 8b120868bccadf82c34a47e9eba11cfd0c3924a5db89c6463264cb1cc7ccbab7bcdad38d6a56138dfbfa334f9807fb200c470ebba7baa223a87d39b0e3cb212f
6
+ metadata.gz: 44945aba1999049638cca10555d4dc192e191fa1fdf81965fa43fe31d1ab01c5e6054769a94efe0e862feee171a24b6d9a50853395628e497e30fb4629295ddf
7
+ data.tar.gz: b97fe832a40614ef14da36d12492e368c86460b0dde1867f411d0360d581fb3fe60256b3efea8d1653d744a1598908d9636d1a97c7043a59de56f6b87deb23ee
@@ -20,7 +20,7 @@ module Zaikio
20
20
  redirect_uri: approve_url(opts.delete(:client_name)),
21
21
  scope: subscription_scope,
22
22
  **opts
23
- )
23
+ ), allow_other_host: true
24
24
  end
25
25
  end
26
26
  end
@@ -63,7 +63,7 @@ module Zaikio
63
63
  end
64
64
 
65
65
  def bearer_klass
66
- return unless Zaikio.const_defined?("Hub::Models", false)
66
+ return unless Zaikio.const_defined?(:"Hub::Models", false)
67
67
 
68
68
  if Zaikio::Hub::Models.configuration.respond_to?(:"#{bearer_type.underscore}_class_name")
69
69
  Zaikio::Hub::Models.configuration.public_send(:"#{bearer_type.underscore}_class_name").constantize
@@ -14,7 +14,7 @@ module Zaikio
14
14
  redirect_uri: approve_url(client_name),
15
15
  scope: oauth_scope,
16
16
  **opts
17
- )
17
+ ), allow_other_host: true
18
18
  end
19
19
 
20
20
  def approve # rubocop:disable Metrics/MethodLength,Metrics/AbcSize,Metrics/CyclomaticComplexity,Metrics/PerceivedComplexity
@@ -46,7 +46,7 @@ module Zaikio
46
46
  access_token, origin
47
47
  )
48
48
  rescue OAuth2::Error => e
49
- raise e unless e.code == "invalid_grant"
49
+ raise e unless e.code == "invalid_grant" || e.code == "invalid_request"
50
50
  raise e if session[:oauth_attempts].to_i >= 3
51
51
 
52
52
  session[:oauth_attempts] = session[:oauth_attempts].to_i + 1
@@ -1,5 +1,5 @@
1
1
  module Zaikio
2
2
  module OAuthClient
3
- VERSION = "0.17.0".freeze
3
+ VERSION = "0.17.1".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zaikio-oauth_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zaikio GmbH
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-23 00:00:00.000000000 Z
11
+ date: 2022-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack