Skip to content

Local development with proxy that requires authentication. #2159

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

Closed
lukasz-madon opened this issue May 15, 2017 · 2 comments
Closed

Local development with proxy that requires authentication. #2159

lukasz-madon opened this issue May 15, 2017 · 2 comments

Comments

@lukasz-madon
Copy link

I have a local Flask server that I'd like to use in development. The problem with using given proxy is that the server uses classic cookie session based authentication. What are the potential solutions for this?

  • Set cookie in public/index.html - That would require setting cookies in every dev machine and they expire. I could add a script that would inject it.
  • Add authentication endpoint - it would need to run first before every request is made.
  • I was thinking if I could hijack localhost+port somehow but that sounds like a bad idea.
@Timer
Copy link
Contributor

Timer commented May 15, 2017

Adding an authentication endpoint seems like the most sensible solution imo. Simply make it accept bogus credentials during development and have your first mounting component hit it with a did mount hook.

@Timer
Copy link
Contributor

Timer commented May 15, 2017

I'm going to close this because it's a general question better suited for Stack Overflow.
I hope my comment above helped!

@Timer Timer closed this as completed May 15, 2017
@lock lock bot locked and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants