Skip to main content

Credential validation helper for any project.

Project description

isuvalidation

isuvalidation provides a thin wrapper around the Fenix authentication flow so that applications can verify whether a username/password combination exists on the database

Installation

pip install isuvalidation

Usage

from isuvalidation import check_credentials

result = check_credentials("username", "password")
if result["success"]:
    print("Credentials are valid.")
else:
    print(f"Login failed: {result['code']} - {result['message']}")

Configuration

Set the following environment variables (or populate a .env file) so the library knows where to send requests and how to interpret responses:

  • FENIX_LOGIN_URL: Full URL of the Fenix login endpoint.
  • SUCCESS_LOGIN_STATUS: Optional HTTP status code that represents a successful login (defaults to 200 if omitted).

Development

Install the project in editable mode and run your preferred tooling.

pip install -e .

Feel free to extend the error_codes mapping in isuvalidation/config.py if new failure scenarios need to be reported.

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

isuvalidation-0.1.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

isuvalidation-0.1.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file isuvalidation-0.1.1.tar.gz.

File metadata

  • Download URL: isuvalidation-0.1.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for isuvalidation-0.1.1.tar.gz
Algorithm Hash digest
SHA256 db1f488fb94c6333c3ce5dfa690fae7fc98f77905b15ad1a5de2de33185dcdfd
MD5 f506f64efdd30321b53cad00d434d826
BLAKE2b-256 b36ad8e6badcc99d7d8b00421c38c565583335fbaf1f0b00d129e13184de9a86

See more details on using hashes here.

File details

Details for the file isuvalidation-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: isuvalidation-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for isuvalidation-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b7a7e403886de4c33a937770006bd169959894319cebba4d65c8cc091c648702
MD5 7454db00817d9920a99891afd3de106f
BLAKE2b-256 dca630504558ac1e68baf2841d8ce0728b0545f0197df7e074e800218bcfc80f

See more details on using hashes here.

Supported by

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