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,
}
```
## 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 hashes)
Built Distribution
Close
Hashes for cloudauthz-0.2.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f401bc61ba55daf415fa1ddd2a355981817279fc145272e5e199246adced305 |
|
MD5 | 0a2e2aa2cc648a308b58a79c6f44222b |
|
BLAKE2b-256 | dc8c82bcafc93de2a09a9baeda78b163384fd357681d1451d6237acbd2779589 |