Skip to main content

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:

  1. Paste the displayed link in a web browser
  2. If requested, approve access via Gitlab.
  3. 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

auth_trial-0.1.4.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

auth_trial-0.1.4-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

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

Hashes for auth_trial-0.1.4.tar.gz
Algorithm Hash digest
SHA256 a18d7f74f78132dc78331835eaa7c0c01d4d8a6c1628eaca708c67248abfab1b
MD5 bcc525de8270f3ca92e17b967da1768e
BLAKE2b-256 d15f3c3a1255dff24317d37a2396f4060badeb8ab1f36aeabd7a5b9a21b3cda2

See more details on using hashes here.

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

Hashes for auth_trial-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ed5a156929644e9e1556ba4f9bac04b208e084fd78c767bd090e9e6cf4349921
MD5 43baee0591432e0af819c68808c95aa7
BLAKE2b-256 642e3d4931ee179718e1e569761d19e2432797e61b2ac62e33935ce752090de6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page