Skip to main content

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()

Metadata

Release files for auth-dtaas 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for auth-dtaas 0.1.0
File Size Uploaded
auth_dtaas-0.1.0.tar.gz 2.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for auth-dtaas 0.1.0
File Interpreter ABI Platform
auth_dtaas-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.5 kB

Release files / auth_dtaas-0.1.0.tar.gz

Download URL auth_dtaas-0.1.0.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b53a0c3b5fd1aabe6f4510fdc9cdbc465d5fd3f91861e487b8c0d736067fa463
BLAKE2b-256 checksum
How to use checksums
c97e8300d30e1ce63381c9725b0640e940db31525ec944118a31b07815288c27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.0 CPython/3.10.7 Windows/10

Release files / auth_dtaas-0.1.0-py3-none-any.whl

Download URL auth_dtaas-0.1.0-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0708f7128d3f2c6969d81e8da97cbfddb1859cef161c54fdb9216366a90bd0be
BLAKE2b-256 checksum
How to use checksums
6fc8401e981bdb1447f92ca470e02f8745d35d9ad8bdc075b7e234c0e203255a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.0 CPython/3.10.7 Windows/10

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page