omniauth-oauth2 1.10.0 → 1.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/omniauth/strategies/oauth2.rb +9 -5
- data/lib/omniauth-oauth2/version.rb +1 -1
- 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: 3970b2f69a10ceb8578c0a231e39bf59cb2f96395578f6b25ef34053d674174e
|
|
4
|
+
data.tar.gz: f879284175c92010060c1bbc1137c682e9d42e499d6fc63997ebd171de513d34
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 676697b73881a8faf4851d92bc20f4c12fc96e87900c9879422acc8386675d5fff713853d354915f27bbc380ed9c23bfe94afd688f7889d354e54ab34cd0d0d4
|
|
7
|
+
data.tar.gz: e88dcbbeefcb4b3ac13115a5f627e3af29259f1cdca574886477f9217beb87f77c5dac7bf5dc95078c658e90104aee3aba40557a4d7a351cb0a0c485f03e4cfd
|
|
@@ -19,9 +19,11 @@ module OmniAuth
|
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
# How many sign-ins can be in progress at once, for example in several
|
|
22
|
-
# tabs. Starting another drops the oldest.
|
|
23
|
-
#
|
|
24
|
-
|
|
22
|
+
# tabs. Starting another drops the oldest. With OmniAuth's origin and
|
|
23
|
+
# params, and the encoding of a Rails cookie session, each one adds
|
|
24
|
+
# about 500 bytes with PKCE to the session, which may be a 4 KB
|
|
25
|
+
# cookie.
|
|
26
|
+
MAX_STORED_SIGN_INS = 3
|
|
25
27
|
|
|
26
28
|
args %i[client_id client_secret]
|
|
27
29
|
|
|
@@ -178,8 +180,10 @@ module OmniAuth
|
|
|
178
180
|
return {} unless options.pkce
|
|
179
181
|
|
|
180
182
|
# A fresh verifier for every authorization request, as RFC 7636
|
|
181
|
-
# requires: https://tools.ietf.org/html/rfc7636#section-4.1
|
|
182
|
-
|
|
183
|
+
# requires: https://tools.ietf.org/html/rfc7636#section-4.1. Its 32
|
|
184
|
+
# random bytes encode to 43 characters, the shortest it allows,
|
|
185
|
+
# which keeps the session small.
|
|
186
|
+
verifier = SecureRandom.urlsafe_base64(32)
|
|
183
187
|
session["omniauth.pkce.verifier"] = verifier
|
|
184
188
|
|
|
185
189
|
# NOTE: see https://tools.ietf.org/html/rfc7636#appendix-A
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-oauth2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.10.
|
|
4
|
+
version: 1.10.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Erik Berlin
|
|
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
87
87
|
- !ruby/object:Gem::Version
|
|
88
88
|
version: '0'
|
|
89
89
|
requirements: []
|
|
90
|
-
rubygems_version:
|
|
90
|
+
rubygems_version: 3.6.9
|
|
91
91
|
specification_version: 4
|
|
92
92
|
summary: An abstract OAuth2 strategy for OmniAuth.
|
|
93
93
|
test_files: []
|