techlahoma_auth 0.0.4 → 0.0.5
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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 643252848e6e0fc47bdd27dfbebed44417ac14d5
|
|
4
|
+
data.tar.gz: a271f5aba6eb586f5fe036766082f006f4e9542d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6ac871b0f276876c2ee3eeaa411a82478481691686e7569bce524b5ba45500125c3cd6aec08f6e8cf69bf69811441af5a678426f98e1cbc9530ad22e97b3c5e8
|
|
7
|
+
data.tar.gz: fb7bb629219ec096f10bb0ecf9a0405aea65296884b67c0c7c8c27e815a4ad62f41b0efffa5406786a648cf869d0bc870fb2aedc59bd147909a88eb6dd5663a3
|
data/README.md
CHANGED
|
@@ -38,7 +38,7 @@ installation that you want to integrate with. For development this will
|
|
|
38
38
|
probably be `http://localhost:3000/oauth/applications`.
|
|
39
39
|
|
|
40
40
|
Create a new application, and set the callback URL to
|
|
41
|
-
`http://localhost:3001/auth/
|
|
41
|
+
`http://localhost:3001/auth/techlahoma/callback`. Change the port if you
|
|
42
42
|
plan to run your client app on a different port. (See the optional
|
|
43
43
|
section below.)
|
|
44
44
|
|
|
@@ -11,7 +11,7 @@ module TechlahomaAuth
|
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
def cookie_valid?
|
|
14
|
-
cookies[:
|
|
14
|
+
cookies[:techlahoma_auth].present? && session[:user_id].present? && cookies[:techlahoma_auth].to_s == session[:user_id].to_s
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
def login_required
|
|
@@ -28,7 +28,7 @@ module TechlahomaAuth
|
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
def auth_redirect
|
|
31
|
-
observable_redirect_to "/auth/
|
|
31
|
+
observable_redirect_to "/auth/techlahoma?origin=#{request.protocol}#{request.host_with_port}#{request.fullpath}"
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
def current_user
|