Auth Microservice (DTaaS) Package
Project description
Auth Microservice
Install the microservice:
pip install auth-trial==0.1.4
Python CLI usage
Setup
On your terminal, switch to Python CLI
python
Then, import the auth package:
from auth_trial 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
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_trial-0.1.4.tar.gz
.
File metadata
- Download URL: auth_trial-0.1.4.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 | a18d7f74f78132dc78331835eaa7c0c01d4d8a6c1628eaca708c67248abfab1b |
|
MD5 | bcc525de8270f3ca92e17b967da1768e |
|
BLAKE2b-256 | d15f3c3a1255dff24317d37a2396f4060badeb8ab1f36aeabd7a5b9a21b3cda2 |
File details
Details for the file auth_trial-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: auth_trial-0.1.4-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 | ed5a156929644e9e1556ba4f9bac04b208e084fd78c767bd090e9e6cf4349921 |
|
MD5 | 43baee0591432e0af819c68808c95aa7 |
|
BLAKE2b-256 | 642e3d4931ee179718e1e569761d19e2432797e61b2ac62e33935ce752090de6 |