Skip to main content

Auth0 middleware for multiple client configurations

Project description

wsgiauth0
=========

.. |buildstatus| image::

This is an Auth0 middleware for multiple client configurations.

Usage
-----

Configure your wsgi pipeline in paste deploy ini file::

[filter:wsgiauth0]
use = egg:wsgiauth0#middleware
clients_config_file = %(here)s/auth0_clients_config.yml

[pipeline:main]
pipeline =
wsgiauth0
myapp

[app:myapp]
use = egg:wsgiapp#main

[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543


It expects a `clients_config_file` key pointing to auth0 client configuration
yaml file.

Here is an example of a yaml configuration file.

.. code:: yaml

Client 1:
algorithm: HS256
id: oZ0ahm4Thoh1Oghiqu4oe9qu
audience: oZ0ahm4Thoh1Oghiqu4oe9qu
secret: noh4feibaighikeeD0inah9Rei3nei6yeenoa7uar2Dah2yaeKioph8Jux8ahte

Client 2:
algorithm: RS256
id: Aen1XobahDoh7queing3eaS0@clients
audience: https://example.com/
secret: |
-----BEGIN CERTIFICATE REQUEST-----
MIIBZjCB0AIBADANMQswCQYDVQQGEwJDQTCBnzANBgkqhkiG9w0BAQEFAAOBjQAw
gYkCgYEAx2LwsUexPKQ/0GIHqugXZtIGZxSOovO754KWn3ZWBbDvm/wuh+QfmMj8
ZTxnxRymHjSNJ04nCMcqtzl3VDwapMkM433CnyZjoJjA/fRwLRjUepLAMbmoqkOG
k1BKNAyidyko7DBnkMayzJRfmnCwFy1hsuikh6oFSinU7MP3LBsCAwEAAaAaMBgG
CSqGSIb3DQEJBzELEwljaGFsbGVuZ2UwDQYJKoZIhvcNAQELBQADgYEAP819zy3q
1gh5z5FLeFanc3TpdlcGHCQxcTMC/x9iyMpbSd2XkKLrZ02Is1Y8Ox/XeT8zNjOg
/nulPg6YrIsywpKFR4orMvuUUMZ8uT8UVNj1pnatmXy9ikjdGtBXeU+EKkMZ4q6a
OrG8qyB4o/WETphyxfneazWt3jrLHkKBvXA=
-----END CERTIFICATE REQUEST-----

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wsgiauth0-0.0.1.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file wsgiauth0-0.0.1.tar.gz.

File metadata

  • Download URL: wsgiauth0-0.0.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wsgiauth0-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b44587d5de0b1532ce04996a50cd7684b7c25f2567478c92a9a8f30da2e70744
MD5 a465e8f82c1f28788e123120667bb4a2
BLAKE2b-256 ea02c37c34aef3505c2b06415a9dbfd8780e34f240394479bdba937b3772a47b

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