simple proxy auth for python app
Project description
proxy auth for python app
Note: this package is still in beta. Use with caution !
Quickstart
Install proxyauth:
pip install proxyauth
Use proxy:
app = Flask(__name__)
app.config['SECRET_KEY'] = 'helloworld'
app.config['PERMANENT_SESSION_LIFETIME'] = timedelta(days=7)
# app.config['SESSION_COOKIE_HTTPONLY'] = True
@proxy_all(app=app, auth_url='http://127.0.0.1:7000')
def proxy(path):
return request.url.replace(':7001', ':7002')
@app.route('/error', methods=['GET'])
def cookie():
return 'error'
@app.route('/session', methods=['GET'])
def setup():
return session_setup()
if __name__ == '__main__':
app.run(port=7001)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for proxyauth-2018.8.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8b4809bc48e43ebeb9fccad1c6335a6d609e619399662dcbd9456364f77ea25 |
|
MD5 | 79ce3119cb208841e59aba77ff36b6d9 |
|
BLAKE2b-256 | ec1c78e1c76967877e3731cb16c06df07d42600a4fc5167e1756119b760de707 |