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 pair is valid without managing sessions themselves.

Installation

pip install .

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.0.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.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: isuvalidation-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 5c544684e778dfd5ef398f9d668df148c9bfb974ef86afc8d2ba0e56c6ccec99
MD5 480e896b3583449eec1363b556cde91e
BLAKE2b-256 fe36e1e4c6f4ff8dc202694c1c8a2aa6f7b30c1d4ae3f63eb8a5945891edc7f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: isuvalidation-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a30088b2dd206067b890791f4397c3c19a8b7a9a869cb49bd0aae994474eddd3
MD5 ad7e2726e3b04223598471aac2148744
BLAKE2b-256 0573b9663eaafc4771f9c613eb2fb9c08e2f19ce96fa0f938b144f37596784c5

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