Skip to main content

Implements means of authorization delegation on cloud-based resource providers.

Project description

# CloudAuthz

## Installation
Install the latest release from PyPi:

pip install cloudauthz


## Example

An example on using Microsoft Azure backend:

```python
from cloudauthz import *

ca = CloudAuthz()
res = ca.authorize('azure', {'tenant_id': TENANT_ID,
'client_id': CLIENT_ID,
'client_secret': CLIENT_SECRET})
```

An example of `res` is as the following:

```python
{
'expiresIn': 3599,
'_authority': 'https://login.microsoftonline.com/TENANT_ID',
'resource': u'https://storage.azure.com/',
'tokenType': u'Bearer',
'expiresOn': '2018-06-28 12:30:24.895661',
'isMRRT': True,
'_clientId': CLIENT_ID,
'accessToken': AN_ACCESS_TOKEN,
}
```


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

cloudauthz-0.2.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

cloudauthz-0.2.0-py2-none-any.whl (7.5 kB view details)

Uploaded Python 2

File details

Details for the file cloudauthz-0.2.0.tar.gz.

File metadata

  • Download URL: cloudauthz-0.2.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/2.7.10

File hashes

Hashes for cloudauthz-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c4d64bee7f38de520cea76c2fd2d1d4679a3f381c01740e6b56b55b501ac0bc7
MD5 62c7530582b5a6d935fa9809f6110fe5
BLAKE2b-256 e4fafb43e79262fcb71f1a59f4f271ba606e810f7358e76e5427b1d373027b2f

See more details on using hashes here.

File details

Details for the file cloudauthz-0.2.0-py2-none-any.whl.

File metadata

  • Download URL: cloudauthz-0.2.0-py2-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/2.7.10

File hashes

Hashes for cloudauthz-0.2.0-py2-none-any.whl
Algorithm Hash digest
SHA256 6f401bc61ba55daf415fa1ddd2a355981817279fc145272e5e199246adced305
MD5 0a2e2aa2cc648a308b58a79c6f44222b
BLAKE2b-256 dc8c82bcafc93de2a09a9baeda78b163384fd357681d1451d6237acbd2779589

See more details on using hashes here.

Supported by

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