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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c0ab2dee53f2e5bb81ac104fae45c9f56183ee6930b260fb122f490d3facfbac
4
- data.tar.gz: d35e9ee87991fdd78cdb5e6b088b7315984a0661e7f7057b650ef8c03877a86d
3
+ metadata.gz: 67d10e89b58685960af43257e432dbb84f3aea4a2199cb79375eb4f2de6ca7c7
4
+ data.tar.gz: 052e44dc0ad2ba91fcbf9acf34db3ca692cceda835fba6cdcb060f1c3a892718
5
5
  SHA512:
6
- metadata.gz: 9b9e7c08d3cde7848e68fcc659e60c1b8cd856d20f0a6d331fbe59488153214940868cf4ac7c3a12e4b11b14cdf1b64af63ded3dabf13668e1749207a8c305a2
7
- data.tar.gz: ba1f777d0bd3c5ca0ceca5283dc6f6121c54b36ae4518754a05708a10cf13e97073351bb8e5a7d213fcb0dadf3444c078d83dff80dcf2edae812e93ee1875b6f
6
+ metadata.gz: a774aec43c53bca4ec44031f116a844b4d338a5405a62cd89a6fa2bb3dbce650acf3f22e93d88eecbf021a96224b8f5aca84a607fdc9ae0ef9b6910a3de4649e
7
+ data.tar.gz: 3e3966222cda7c6c359f1b6cb0255b0c74e3c17f67f22dbd42f238d5725ac94592fe648c92885ebb8ad59533bbeeeb2903a0809013f3e3603560bf4e25e9d258
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.0.3]
4
+
5
+ - Remove overwritten callback_phase method that skipped refresh_token existence check
6
+
3
7
  ## [1.0.2]
4
8
 
5
9
  - Update uid to use organization id id
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omniauth-miro (1.0.2)
4
+ omniauth-miro (1.0.3)
5
5
  omniauth (>= 1, < 3)
6
6
  omniauth-oauth2 (~> 1.1)
7
7
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module Miro
5
- VERSION = '1.0.2'
5
+ VERSION = '1.0.3'
6
6
  end
7
7
  end
@@ -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.2
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-17 00:00:00.000000000 Z
11
+ date: 2024-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth