Skip to main content

HTTP headers auto detection tool.

Project description

alfinx_autho is a lightweight Python package designed to simplify authentication in FastAPI applications via HTTP headers. It automatically detects x-api-key and x-service-code headers from incoming requests and sends them, along with environment variables AUTHENTICATION_API_URL and X_SERVICE_ORIGIN_CODE, to an external authentication service for verification.

Installation

To install the package, run the following command:

pip install alfinx_utils

from alfinx import check_authentication,decrease_user_limit,save_data_on_mongo

Postman Headers:

x-api-key: (sЙ™nin API aГ§arД±n) x-service-code: (sЙ™nin xidmЙ™t kodun)

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

alfinx_utils-0.3.4.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

alfinx_utils-0.3.4-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file alfinx_utils-0.3.4.tar.gz.

File metadata

  • Download URL: alfinx_utils-0.3.4.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for alfinx_utils-0.3.4.tar.gz
Algorithm Hash digest
SHA256 d3249d2201f4927ad3aad42c41de0481f7a17e35f3f8a77fc2dae68fbda2dd2a
MD5 2b647f5ca0276b1dc60c4914721d933b
BLAKE2b-256 410c446a1c7d900a98a6156cb3e689aa6c6f3420e488c70b51a5cce302e7c412

See more details on using hashes here.

File details

Details for the file alfinx_utils-0.3.4-py3-none-any.whl.

File metadata

  • Download URL: alfinx_utils-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for alfinx_utils-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3050bafee311728c2d7721c17c92753f8309d95049bbe2cd2dd96b839e06b33a
MD5 089775d0e2605dfdb37238a15eb79f32
BLAKE2b-256 3f8d4b08440027252979f9ae41208bf14fbb9833c69e4f436942eb08f75d7cd6

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