Auth Microservice (DTaaS) Package
Project description
Auth Microservice
Install the microservice:
pip install auth-dtaas==0.1.0
Python CLI usage
Setup
On your terminal, switch to Python CLI
python
Then, import the auth package:
from auth_dtaas import auth
You can now use functions of the Auth microservice.
Register/Authorize new session
auth.authorization()
Follow the guide:
- Paste the displayed link in a web browser
- If requested, approve access via Gitlab.
- Paste the link you are redirected to, into the terminal.
The state and access_token for this session will be displayed.
Copy/Save these for later use.
Validating existing session
auth.validation(state, access_token)
Provide the state and access_token of the session requesting validation, as parameters.
In case of successful validation, your account information will be displayed. Confirm that this is the correct account before proceeding.
Response codes will be returned by this function:
- 200 : OK, User Validated
- 403 : User validation has expired, Requires re-authorization
- 404 : New user/ User is not validation
Exit
To exit the Python CLI:
exit()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file auth_dtaas-0.1.0.tar.gz
.
File metadata
- Download URL: auth_dtaas-0.1.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.0 CPython/3.10.7 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b53a0c3b5fd1aabe6f4510fdc9cdbc465d5fd3f91861e487b8c0d736067fa463 |
|
MD5 | 895203d5a08496b1c57723ee9f9dc374 |
|
BLAKE2b-256 | c97e8300d30e1ce63381c9725b0640e940db31525ec944118a31b07815288c27 |
File details
Details for the file auth_dtaas-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: auth_dtaas-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.0 CPython/3.10.7 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0708f7128d3f2c6969d81e8da97cbfddb1859cef161c54fdb9216366a90bd0be |
|
MD5 | 6e6bedcfd88be3a5180e557fab273980 |
|
BLAKE2b-256 | 6fc8401e981bdb1447f92ca470e02f8745d35d9ad8bdc075b7e234c0e203255a |