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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/rack/oauth2/client.rb +10 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efedb22bf2d26cfc59bff3d5742144e6d456099f
|
4
|
+
data.tar.gz: 70d6b0c26c8c877b565a57a3c45e60a2cc06c6ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5af294837dac819581056e65a265af1680cdaa194c9e21cf2f6736486c77733f8315f0a263c811df042d93b1756ca08df1db22ce4f7bb4b89f86d13837646a66
|
7
|
+
data.tar.gz: ce468e48663cbd68e13b8b208a6f82139c7e2ee9b1bf051a91083351008017d03721f2197d1a6b53272c7247acb2cd7435823fc2ee6cccb3219136976e23f574
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.8.
|
1
|
+
1.8.1
|
data/lib/rack/oauth2/client.rb
CHANGED
@@ -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
|
-
|
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.
|
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-
|
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.
|
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
|