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_auth

from alfinx_auth import check_authentication

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_auth-0.2.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

alfinx_auth-0.2.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file alfinx_auth-0.2.1.tar.gz.

File metadata

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

File hashes

Hashes for alfinx_auth-0.2.1.tar.gz
Algorithm Hash digest
SHA256 b003ed452f82f31f29f5949762b2ccff183677a3e87926a496aefec5c10d1aaa
MD5 e33aff94466f59894ef5c900457e8097
BLAKE2b-256 758af20895323f62f2e945799a688e683bb0d385372352a8140ecc20caa56cca

See more details on using hashes here.

File details

Details for the file alfinx_auth-0.2.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for alfinx_auth-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 366bbbbabd51d40af66a0cb7f6f709ecad7f978a3786b4294d3bcf86e93ac6d4
MD5 2a38ae40d30bca98bfd3bef3d2e4eae4
BLAKE2b-256 faa67460b2cfa0e41f7ce913ac8e1c6eaf1067173ab19c319b76da4580d6cc0a

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