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 +4 -4
- data/lib/clowk/authenticable.rb +8 -0
- data/lib/clowk/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 33d1a92eb50a3515f9c312ccd3ba71dbc9bedfd11935797f70497aa076dbb55b
|
|
4
|
+
data.tar.gz: 38aa689ff1303246487acaad73cf02c34955bafa9a44bc44544b6ce289e758a3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b334fda452268ee1ae58a897ddbd07dfe6c0f715f4a2693ddadffbeb882af3d906bf4e76ce655160eb5c204c2de6d175c596ecc182b4261ef9edfc21c31f6b51
|
|
7
|
+
data.tar.gz: 4516f8fdc4dd79291fa895c2a203d7920b3d44ee69bf89f1a8c3f11877f65e36d1e8dd70b67b5a99c49462e15c07d33f25b42d85466fd87f44e2a3244745248e
|
data/lib/clowk/authenticable.rb
CHANGED
|
@@ -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