Skip to main content

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:

  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_dtaas-0.1.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

auth_dtaas-0.1.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

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

Hashes for auth_dtaas-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b53a0c3b5fd1aabe6f4510fdc9cdbc465d5fd3f91861e487b8c0d736067fa463
MD5 895203d5a08496b1c57723ee9f9dc374
BLAKE2b-256 c97e8300d30e1ce63381c9725b0640e940db31525ec944118a31b07815288c27

See more details on using hashes here.

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

Hashes for auth_dtaas-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0708f7128d3f2c6969d81e8da97cbfddb1859cef161c54fdb9216366a90bd0be
MD5 6e6bedcfd88be3a5180e557fab273980
BLAKE2b-256 6fc8401e981bdb1447f92ca470e02f8745d35d9ad8bdc075b7e234c0e203255a

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