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.1.0.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for cloudauthz-0.1.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 985f7cfeb17ebec47bfb1d1430bbdfd6c38e0dbda74786b06ab868e19c1dbe27 |
|
MD5 | 40aeb486b20904228b988eaa6630e667 |
|
BLAKE2b-256 | 7f39d71c0b6b74e6584b2b7c6060b9466f682b464cae80efbaa5e597983e6b76 |