Skip to main content

authentication layer for my personal server.

Project description

square_authentication

about

authentication layer for my personal server.

Installation

pip install square_authentication

env

  • python>=3.12.0

changelog

v4.1.0

  • add get_text_hash/v0 in utils.

v4.0.1

  • bugfix in pydantic model import.

v4.0.0

  • /login_username/v0 is now POST method.
  • new flag in /login_username/v0 assign_app_id_if_missing.
  • bugfix: /get_user_details/v0 now only returns number of active sessions.

v3.0.0

  • added new endpoints
    • /update_username/v0
    • /delete_user/v0
    • /update_password/v0
  • move data in password related endpoints to request body from params.
  • /register_username/v0 now takes in app_id as optional parameter to assign user to that app and create session for it.
  • /generate_access_token/v0 now only needs refresh token (removed validation).
  • /logout/v0 now only needs refresh token (removed validation).
  • /update_user_app_ids/v0 now only updates ids for self (user). added access token as input param and removed user_id.
  • /get_user_app_ids/v0 is now /get_user_details/v0 with access token as the only input param.

v2.0.0

  • authentication module needs to be used across applications so
    • register_username: will not create sessions and therefore will not auto login.
    • login: added validation if app is assigned to user before assigning it and added app_id in session row.
    • logout: added app_id as new parameter and validation for that.
    • generate_access_token: added app_id as new parameter and validation for that.
  • added 2 new endpoints
    • get user app ids: access token validation pending.
    • change user app ids: access token validation pending.
  • add versions for all endpoint paths.
  • make it compatible with square_database_helper 2.x.
  • username in database will always be lowercase.
  • standardise output formats for all api.

v1.0.0

  • initial implementation.

Feedback is appreciated. Thank you!

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

square_authentication-4.1.0.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

square_authentication-4.1.0-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file square_authentication-4.1.0.tar.gz.

File metadata

  • Download URL: square_authentication-4.1.0.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for square_authentication-4.1.0.tar.gz
Algorithm Hash digest
SHA256 ebe32757ca67bc9c80c5bf9bb40dab01457d20cf5fc03d1234490b1cec2ab81d
MD5 c8f97e0fbbb3d07f3b664a72704624e0
BLAKE2b-256 04cd35c15dd3ed4578ad12eeee4bcff1713ea542868bda4ea3fee55fac020837

See more details on using hashes here.

File details

Details for the file square_authentication-4.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for square_authentication-4.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fdbdc5e8da9fcb33a8b68386572d6c509a4564c61ffdc892418bca7a675a6134
MD5 513d16816946c2739f499c7812cea8ef
BLAKE2b-256 aeeeb554b79d53afae8888d514157de8abf614a1bd06b0fb336dacbe6abb9da5

See more details on using hashes here.

Supported by

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