Skip to main content
Flower oAuth Azure
------------------


Microsoft Azure login handler for [Flower](https://flower.readthedocs.io/en/latest/)

Flower provides internal support for Google and GitHub OAuth authentication, this package enable
similar functionality for [Microsoft Azure](https://portal.azure.com/)


## Quick start

pip install flower-oauth-azure


Azure OAuth 2.0 authentication is enabled using the `--auth`, `--oauth2_key`, `--oauth2_secret` and `--oauth2_redirect_uri` options,
to set the Azure tenant `FLOWER_OAUTH2_TENANT` environment variable must be set.

`--auth` is a regular expression, for granting access only to the specified email pattern.
`–-oauth2_key` and `–-oauth2_secret` are your credentials from your Azure Account.
`–-oauth2_redirect_uri` is there to specify what is the redirect_uri associated to you key and secret


For instance, if you want to grant access to me@saxix.onmicrosoft.com and you@saxix.onmicrosoft.com:

$ export FLOWER_OAUTH2_TENANT=saxix.onmicrosoft.com
$ celery flower --auth_provider=flower_oauth_azure.tenant.AzureTenantLoginHandler \
--auth="me@saxix.onmicrosoft.com|you@saxix.onmicrosoft.com" \
--oauth2_key=... \
--oauth2_secret=...
--oauth2_redirect_uri=http://flower.example.com/login

Alternatively you can set environment variables instead of command line arguments:

$ export FLOWER_OAUTH2_KEY=...
$ export FLOWER_OAUTH2_SECRET=...
$ export FLOWER_OAUTH2_TENANT=saxix.onmicrosoft.com
$ export FLOWER_AUTH=.*@saxix\.onmicrosoft\.com
$ export FLOWER_AUTH_PROVIDER=flower_oauth_azure.tenant.AzureTenantLoginHandler
$ export FLOWER_OAUTH2_REDIRECT_URI=http://flower.example.com/login
$ celery flower

Download files

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

Source Distribution

flower-oauth-azure-1.0.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file flower-oauth-azure-1.0.tar.gz.

File metadata

  • Download URL: flower-oauth-azure-1.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/3.6.3

File hashes

Hashes for flower-oauth-azure-1.0.tar.gz
Algorithm Hash digest
SHA256 aabd7de6eb7fa678e31636d6d20b81ef5c42289d93da38365bd0128a8c70f94a
MD5 0aee1ca7e61afac736c4dfa6060022c2
BLAKE2b-256 7b1124ff871ff4852661f162d01e00fc294da2113de7c5db527eb804873d4e24

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0 This release

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page