clowk 0.7.0 → 0.7.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: 66d644459bae62c4a73b869fadc50402bfbe6fb060c0c6fc5ee521361a852be7
4
- data.tar.gz: 1e81f740b072795cb9a84c2013f406ee5ea34a9bf5c1c92797cea9efd1c22d4e
3
+ metadata.gz: 33d1a92eb50a3515f9c312ccd3ba71dbc9bedfd11935797f70497aa076dbb55b
4
+ data.tar.gz: 38aa689ff1303246487acaad73cf02c34955bafa9a44bc44544b6ce289e758a3
5
5
  SHA512:
6
- metadata.gz: 824a01a8708d3b4f1805c83acc20d2161c9e72f3be7c47ae9e1c2d9d80bbff624292d20e65cf03b53ca5384874caef3f1d038482cd4d4593cc688537b63a2d31
7
- data.tar.gz: d4703e671a924025452c08686d6134f85563108d0edeb18bb049f9f9e4d119228d404ba3eccddae21840b2b63267c416aebac1b4a7f925689a9e37cd642cbf95
6
+ metadata.gz: b334fda452268ee1ae58a897ddbd07dfe6c0f715f4a2693ddadffbeb882af3d906bf4e76ce655160eb5c204c2de6d175c596ecc182b4261ef9edfc21c31f6b51
7
+ data.tar.gz: 4516f8fdc4dd79291fa895c2a203d7920b3d44ee69bf89f1a8c3f11877f65e36d1e8dd70b67b5a99c49462e15c07d33f25b42d85466fd87f44e2a3244745248e
@@ -153,6 +153,14 @@ module Clowk
153
153
 
154
154
  # @param force [Boolean] see {#clowk_session_status}
155
155
  def clowk_enforce_session!(force: false)
156
+ # Nothing to enforce against a request that carries no session. Reached
157
+ # through clowk_authenticate! this is already true, but the method is also
158
+ # a before_action in its own right — and called that way with no session it
159
+ # read "not active" and ended one that never existed. On a page that skips
160
+ # the identity gate on purpose (an invite link, a public page that shows
161
+ # more when signed in) that threw away whatever the redirect was carrying.
162
+ return unless clowk_signed_in?
163
+
156
164
  return clowk_expire_session!(nil) if clowk_session_beyond_max_age?
157
165
  return if clowk_session_active?(force: force)
158
166
 
data/lib/clowk/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Clowk
4
- VERSION = "0.7.0"
4
+ VERSION = "0.7.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clowk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clowk