omniauth-miro 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/omni_auth/miro/version.rb +1 -1
- data/lib/omni_auth/strategies/miro.rb +0 -20
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67d10e89b58685960af43257e432dbb84f3aea4a2199cb79375eb4f2de6ca7c7
|
4
|
+
data.tar.gz: 052e44dc0ad2ba91fcbf9acf34db3ca692cceda835fba6cdcb060f1c3a892718
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a774aec43c53bca4ec44031f116a844b4d338a5405a62cd89a6fa2bb3dbce650acf3f22e93d88eecbf021a96224b8f5aca84a607fdc9ae0ef9b6910a3de4649e
|
7
|
+
data.tar.gz: 3e3966222cda7c6c359f1b6cb0255b0c74e3c17f67f22dbd42f238d5725ac94592fe648c92885ebb8ad59533bbeeeb2903a0809013f3e3603560bf4e25e9d258
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -46,26 +46,6 @@ module OmniAuth
|
|
46
46
|
params[:redirect_uri] = callback_url
|
47
47
|
end
|
48
48
|
end
|
49
|
-
|
50
|
-
def callback_phase
|
51
|
-
error = request.params['error_reason'] || request.params['error']
|
52
|
-
if !options.provider_ignores_state && (request.params['state'].to_s.empty? || request.params['state'] != session.delete('omniauth.state'))
|
53
|
-
fail!(:csrf_detected, CallbackError.new(:csrf_detected, 'CSRF detected'))
|
54
|
-
elsif error
|
55
|
-
fail!(error,
|
56
|
-
CallbackError.new(request.params['error'], request.params['error_description'] || request.params['error_reason'], request.params['error_uri']))
|
57
|
-
else
|
58
|
-
self.access_token = build_access_token
|
59
|
-
env['omniauth.auth'] = auth_hash
|
60
|
-
call_app!
|
61
|
-
end
|
62
|
-
rescue ::OAuth2::Error, CallbackError => e
|
63
|
-
fail!(:invalid_credentials, e)
|
64
|
-
rescue ::Timeout::Error, ::Errno::ETIMEDOUT => e
|
65
|
-
fail!(:timeout, e)
|
66
|
-
rescue ::SocketError => e
|
67
|
-
fail!(:failed_to_connect, e)
|
68
|
-
end
|
69
49
|
end
|
70
50
|
end
|
71
51
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-miro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rewind Software Inc. | Calvin Chen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|