Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i use devise authentication ? #34

Open
scrol opened this issue Jun 30, 2016 · 2 comments
Open

how can i use devise authentication ? #34

scrol opened this issue Jun 30, 2016 · 2 comments

Comments

@scrol
Copy link

scrol commented Jun 30, 2016

how to authenticate if the current user is logged in, and then allow the requests to be forwarded to the proxy server?

@waterlink
Copy link
Owner

@scrol could you tell me at which application do you have devise set up? (at the same, that has rack-reverse-proxy or the app that you are proxying to)?

@jxc876
Copy link

jxc876 commented Aug 10, 2016

I need something similar, I want to reverse proxy to an API that requires authentication (via a header). I don't know how to pass the header along. Ideally something like :

reverse_proxy '/api', 'www.internal-api.com/api' do |req| 
       req.headers: {  'X-My-Custom-Auth-Header': 'token-12345' } 
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants