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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 237bdb03b2ab2870ef2c0b9a92c9dac64fb2c67df2bba8e9234831eb14954f42
|
4
|
+
data.tar.gz: ae977109316a023585e008e669958775534eef2ecea309ede9b373d44f368fd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44945aba1999049638cca10555d4dc192e191fa1fdf81965fa43fe31d1ab01c5e6054769a94efe0e862feee171a24b6d9a50853395628e497e30fb4629295ddf
|
7
|
+
data.tar.gz: b97fe832a40614ef14da36d12492e368c86460b0dde1867f411d0360d581fb3fe60256b3efea8d1653d744a1598908d9636d1a97c7043a59de56f6b87deb23ee
|
@@ -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
|
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.
|
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:
|
11
|
+
date: 2022-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|