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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 56ea3a5f282231d2b4dbfc7393ab753608e47be23a5759dbe2b0bb5865a04b30
4
- data.tar.gz: e3ed45d971bafe000603a58ef6221be463d08b6649065c6a6bb1de908d87fb64
3
+ metadata.gz: 3970b2f69a10ceb8578c0a231e39bf59cb2f96395578f6b25ef34053d674174e
4
+ data.tar.gz: f879284175c92010060c1bbc1137c682e9d42e499d6fc63997ebd171de513d34
5
5
  SHA512:
6
- metadata.gz: 7b326c3f87b4fdee92bcf1bd41c36378f91a3a9a6678461c16f9dcec95f995eaebd40808e1d9262d485ced7cfab49007476becdc3a94e49cb1b1411f884f6723
7
- data.tar.gz: b847b133de1f64cf23bae72b92e5453c0fc9846248bdd8eee71b9197632cdbdbaaaab36bc6f7792a257d20132205206619227dfc4accdc0e869bf8a4edb16c07
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. Each one adds about 300
23
- # bytes to the session, which may be a 4 KB cookie.
24
- MAX_STORED_SIGN_INS = 5
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
- verifier = SecureRandom.hex(64)
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
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module OAuth2
3
- VERSION = "1.10.0".freeze
3
+ VERSION = "1.10.1".freeze
4
4
  end
5
5
  end
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.0
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: 4.0.20
90
+ rubygems_version: 3.6.9
91
91
  specification_version: 4
92
92
  summary: An abstract OAuth2 strategy for OmniAuth.
93
93
  test_files: []