devise-proxy 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +7 -13
- data/lib/devise-proxy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c304e0e55e583d2b1da6da36788fb6b1ea84e9f5
|
4
|
+
data.tar.gz: 39423ea8a2067e16df0c9e1ccbfb55d80b1431b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2e92a7781b8a39f47f824b8ae3e8a8ce07495c10578d493e8b77c118bf998b18b70927e4687480194178d678324e240d2bb06e59e317a171af0faa4ffadfcb8
|
7
|
+
data.tar.gz: 65d77c26ce2b7d230292f65750b0bfcab7a8075f30d4f4deafdd4aeec43d425bbb3f7ba47f17ff00db4dde0a902b40483c2939eb607b09afd6e2c7ca208041fd
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Devise Proxy
|
1
|
+
# Devise Proxy
|
2
2
|
|
3
3
|
devise-proxy is a standalone Rack Middleware application that authenticates a username/password against
|
4
4
|
a devise-powered backend application before forwarding the original HTTP request to a single host of your choosing.
|
@@ -8,7 +8,7 @@ Authentication is done on *every* request, so it is advisable to use devise-prox
|
|
8
8
|
devise-proxy will return a 502 if a network connection to your authentication host cannot be established.
|
9
9
|
|
10
10
|
|
11
|
-
## Quick Start
|
11
|
+
## Quick Start
|
12
12
|
|
13
13
|
1. Create a devise-proxy.yml using the provided .sample.
|
14
14
|
1. Start the proxy server:
|
@@ -16,7 +16,7 @@ devise-proxy will return a 502 if a network connection to your authentication ho
|
|
16
16
|
1. Configure you web browser or other client software to use the proxy and set a username (email) and password.
|
17
17
|
1. Enjoy!
|
18
18
|
|
19
|
-
## Example Configuration
|
19
|
+
## Example Configuration
|
20
20
|
|
21
21
|
You'll need a config/devise-proxy.yml file to start the application. For example:
|
22
22
|
|
@@ -28,15 +28,13 @@ You'll need a config/devise-proxy.yml file to start the application. For example
|
|
28
28
|
port: 3000
|
29
29
|
|
30
30
|
|
31
|
-
## Example Deployment on Linux
|
31
|
+
## Example Deployment on Linux
|
32
32
|
There is a sample init script in extra/. This script will start the proxy as a daemon on port 6969 as a given user ("tater" in our example). Edit
|
33
33
|
for your environment. Note that you may need to edit the "exec" path. In the sample it points to an rvm wrapper script created using the following command: "rvm wrapper ruby-1.9.3 bootup rackup".
|
34
34
|
|
35
|
-
## Troubleshooting
|
35
|
+
## Troubleshooting
|
36
36
|
|
37
|
-
|
38
|
-
|
39
|
-
### Infinite Client Redirects ###
|
37
|
+
### Infinite Client Redirects
|
40
38
|
|
41
39
|
If your client complains about infinite redirects, you're probably forwarding traffic to a hostname that returns a 302.
|
42
40
|
This may be the case if you request example.com, but the server redirects you to www.example.com.
|
@@ -46,10 +44,6 @@ and return it to the client, introducing an infinite loop that the browser *shou
|
|
46
44
|
This shouldn't be a big deal if you're forwarding to your own well-behaved devise app, but is worth mentioning.
|
47
45
|
|
48
46
|
|
49
|
-
## Authors
|
47
|
+
## Authors
|
50
48
|
|
51
49
|
Preston Lee
|
52
|
-
|
53
|
-
## Legal ##
|
54
|
-
|
55
|
-
See LICENSE file for details.
|
data/lib/devise-proxy/version.rb
CHANGED