Skip to main content

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


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

proxyauth-2018.8.2-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file proxyauth-2018.8.2-py3-none-any.whl.

File metadata

File hashes

Hashes for proxyauth-2018.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6507f4083a8c00cef9db79eefa31dc53a88205e2ef2f71815e8d7fed544f40fc
MD5 d136946d71d7bd5d79e2bb1b84afc656
BLAKE2b-256 60a903771b0904916d291c8d93880073b6b0efab322d6512f4b3e104216cc1d1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page