lockie 0.3.3 → 0.3.4
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/lockie/failure_app.rb +5 -2
- data/lib/lockie/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: 5ee73ebd0d83d510942864ae11dad538c578fa4b396fad352d6c4f1602fdfbd5
|
|
4
|
+
data.tar.gz: 5fce20025be471f55631caa7d6d9ce874b640b838e517662e0d26acd6f576e42
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5005acb3551a23b03aa7e6e1a87e0224c054fde2e1768cf84c3d278064ab1f9ff8b525d0a4c209dfa48cf11340b74935e13a14cdaa04f7b12c6b69c7c27a71b8
|
|
7
|
+
data.tar.gz: a002a2bd09c46b611a0d1ac544f65c74dd93bc69c632da534d12cc3e869e93cc73bd10d1056645d6c00c63ad18474eaebc759125cc2e4331a7aa87df08449b12
|
data/lib/lockie/failure_app.rb
CHANGED
|
@@ -34,9 +34,12 @@ module Lockie
|
|
|
34
34
|
flash[type] = message if message
|
|
35
35
|
self.status = 302
|
|
36
36
|
if Lockie.config.callback_url
|
|
37
|
-
callback_url = request.base_url + request.original_fullpath
|
|
38
37
|
uri = URI(warden_options[:unauthenticated_path] || Lockie.config.unauthenticated_path)
|
|
39
|
-
|
|
38
|
+
# only add callback_url if original path is not the same with login path
|
|
39
|
+
unless request.original_fullpath == uri.path
|
|
40
|
+
callback_url = request.base_url + request.original_fullpath
|
|
41
|
+
uri.query = (uri.query.to_s.split("&") << "callback_url=#{ callback_url }").join("&")
|
|
42
|
+
end
|
|
40
43
|
redirect_to uri.to_s
|
|
41
44
|
else
|
|
42
45
|
redirect_to Lockie.config.unauthenticated_path
|
data/lib/lockie/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lockie
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Melvin Sembrano
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-01-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|