rack-oauth2 1.8.0 → 1.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/rack/oauth2/client.rb +10 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cda56e136be240ecb7faedac7e0069f25318b471
4
- data.tar.gz: b3349a1fd8210e59df758b8f16fcf5c0dc186092
3
+ metadata.gz: efedb22bf2d26cfc59bff3d5742144e6d456099f
4
+ data.tar.gz: 70d6b0c26c8c877b565a57a3c45e60a2cc06c6ac
5
5
  SHA512:
6
- metadata.gz: 6b60bd49eda41862116792fe9d7b6a4a0015063604dc1ee4fc2bb785147d6ab7690064ef768017af6c91fe3591984c9ebe8d59c23acfb0a3d9bb5fcfc6984ed4
7
- data.tar.gz: 18deba6a3040a76a2970f083b6d52de13f4f31b602027bdff064cdbb6ccd3cd2be2a996400a189c6c5a7ffe4a47672f3b8f98e253f44305d4997d36e482c5038
6
+ metadata.gz: 5af294837dac819581056e65a265af1680cdaa194c9e21cf2f6736486c77733f8315f0a263c811df042d93b1756ca08df1db22ce4f7bb4b89f86d13837646a66
7
+ data.tar.gz: ce468e48663cbd68e13b8b208a6f82139c7e2ee9b1bf051a91083351008017d03721f2197d1a6b53272c7247acb2cd7435823fc2ee6cccb3219136976e23f574
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.8.0
1
+ 1.8.1
@@ -80,11 +80,20 @@ module Rack
80
80
  params[:scope] = Array(options.delete(:scope)).join(' ') if options[:scope].present?
81
81
  params.merge! options
82
82
 
83
- if client_auth_method == :basic
83
+ case client_auth_method
84
+ when :basic
84
85
  cred = ["#{identifier}:#{secret}"].pack('m').tr("\n", '')
85
86
  headers.merge!(
86
87
  'Authorization' => "Basic #{cred}"
87
88
  )
89
+ when :jwt_bearer
90
+ params.merge!(
91
+ client_assertion_type: URN::ClientAssertionType::JWT_BEARER
92
+ )
93
+ when :saml2_bearer
94
+ params.merge!(
95
+ client_assertion_type: URN::ClientAssertionType::SAML2_BEARER
96
+ )
88
97
  else
89
98
  params.merge!(
90
99
  client_id: identifier,
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.8.0
4
+ version: 1.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - nov matake
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-14 00:00:00.000000000 Z
11
+ date: 2018-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -287,7 +287,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
287
287
  version: 1.3.6
288
288
  requirements: []
289
289
  rubyforge_project:
290
- rubygems_version: 2.6.11
290
+ rubygems_version: 2.6.13
291
291
  signing_key:
292
292
  specification_version: 4
293
293
  summary: OAuth 2.0 Server & Client Library - Both Bearer and MAC token type are supported