# 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,
}
```
## 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,
}
```
Metadata
Release files for cloudauthz 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cloudauthz-0.2.0.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cloudauthz-0.2.0-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 12.0 kB
Release files / cloudauthz-0.2.0.tar.gz
| Download URL | cloudauthz-0.2.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c4d64bee7f38de520cea76c2fd2d1d4679a3f381c01740e6b56b55b501ac0bc7
|
|
BLAKE2b-256 checksum How to use checksums |
e4fafb43e79262fcb71f1a59f4f271ba606e810f7358e76e5427b1d373027b2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / cloudauthz-0.2.0-py2-none-any.whl
| Download URL | cloudauthz-0.2.0-py2-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
6f401bc61ba55daf415fa1ddd2a355981817279fc145272e5e199246adced305
|
|
BLAKE2b-256 checksum How to use checksums |
dc8c82bcafc93de2a09a9baeda78b163384fd357681d1451d6237acbd2779589
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|