rack-oauth2 1.6.1 → 1.6.2

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
  SHA1:
3
- metadata.gz: cf7646fe3537ca7d1c5df536dab1b97bcc2964d2
4
- data.tar.gz: 9d0e17a9792a2b585a037705f89b3d50804afe8d
3
+ metadata.gz: 42e58238c013376c4c93565603d68ca11c4140f6
4
+ data.tar.gz: 6ca1e08435e371ffe9f439cce68a348b9745182a
5
5
  SHA512:
6
- metadata.gz: 2fc417a55a0d722ec3affba97eb173a216f7fe8c50fdfd9db747d253d1c9ac601827b413ae2196c9c60e6ac4563f59db87ccef8bbaeeb8d1f385f23452daa86d
7
- data.tar.gz: f7d79567537f8a6b46b1ce3e91185523681cc6b4f6ca6c4a5e000cb7f108a815b8ce29a721f00ff9a073d871b619534ffab8ab07f153cda9df65018afa8ce150
6
+ metadata.gz: 9ce708fcc6bc380e60abee606fe26e713a68441512dbaf2ee0bf4d1f48143b63872ef4cb721ec3e386381b2a9e0372591fbc89a1e5c89245b07d612b69bc52a4
7
+ data.tar.gz: 162a29361e9bb4aff0b3e4a1b78ac317520563a0c3d53b15c36f2cc975b910ff8b0339c0cca8960965121e8c366d716708a14429574181e80ea7e7d7305039bf
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.1
1
+ 1.6.2
@@ -41,7 +41,7 @@ module Rack
41
41
  def initialize(env)
42
42
  super
43
43
  # NOTE: Raise before redirect_uri is saved not to redirect back to unverified redirect_uri.
44
- bad_request! if client_id.blank?
44
+ invalid_request! '"client_id" missing' if client_id.blank?
45
45
  @redirect_uri = Util.parse_uri(params['redirect_uri']) if params['redirect_uri']
46
46
  @state = params['state']
47
47
  end
@@ -58,12 +58,12 @@ module Rack
58
58
  if verified
59
59
  redirect_uri
60
60
  else
61
- bad_request!
61
+ invalid_request! '"redirect_uri" mismatch'
62
62
  end
63
63
  elsif pre_registered.present? && Array(pre_registered).size == 1 && !allow_partial_match
64
64
  Array(pre_registered).first
65
65
  else
66
- bad_request!
66
+ invalid_request! '"redirect_uri" missing'
67
67
  end
68
68
  self.verified_redirect_uri.to_s
69
69
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - nov matake
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-27 00:00:00.000000000 Z
11
+ date: 2017-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -299,7 +299,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
299
299
  version: 1.3.6
300
300
  requirements: []
301
301
  rubyforge_project:
302
- rubygems_version: 2.6.8
302
+ rubygems_version: 2.6.11
303
303
  signing_key:
304
304
  specification_version: 4
305
305
  summary: OAuth 2.0 Server & Client Library - Both Bearer and MAC token type are supported