# square_authentication
## about
authentication layer for my personal server.
## Installation
```shell
pip install square_authentication
```
## env
- python>=3.12.0
## changelog
### v4.3.0
- set allow_credentials=True.
### v4.2.1
- fix output format in validate_and_get_payload_from_token/v0.
- add db check refresh token validation in validate_and_get_payload_from_token/v0.
### v4.2.0
- add validate_and_get_payload_from_token/v0 in core.
### 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!
Raw data
{
"_id": null,
"home_page": "https://github.com/thepmsquare/square_authentication",
"name": "square-authentication",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "thePmSquare",
"author_email": "thepmsquare@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/8e/a1/21258712f2f24f1a9c465c53673335c15aab6eed59edf8584a9e1db94a87/square_authentication-4.3.0.tar.gz",
"platform": null,
"description": "# square_authentication\n\n## about\n\nauthentication layer for my personal server.\n\n## Installation\n\n```shell\npip install square_authentication\n```\n\n## env\n\n- python>=3.12.0\n\n## changelog\n\n### v4.3.0\n\n- set allow_credentials=True.\n\n### v4.2.1\n\n- fix output format in validate_and_get_payload_from_token/v0.\n- add db check refresh token validation in validate_and_get_payload_from_token/v0.\n\n### v4.2.0\n\n- add validate_and_get_payload_from_token/v0 in core.\n\n### v4.1.0\n\n- add get_text_hash/v0 in utils.\n\n### v4.0.1\n\n- bugfix in pydantic model import.\n\n### v4.0.0\n\n- /login_username/v0 is now POST method.\n- new flag in /login_username/v0 assign_app_id_if_missing.\n- bugfix: /get_user_details/v0 now only returns number of active sessions.\n\n### v3.0.0\n\n- added new endpoints\n - /update_username/v0\n - /delete_user/v0\n - /update_password/v0\n- move data in password related endpoints to request body from params.\n- /register_username/v0 now takes in app_id as optional parameter to assign user to that app and create session for it.\n- /generate_access_token/v0 now only needs refresh token (removed validation).\n- /logout/v0 now only needs refresh token (removed validation).\n- /update_user_app_ids/v0 now only updates ids for self (user). added access token as input param and removed user_id.\n- /get_user_app_ids/v0 is now /get_user_details/v0 with access token as the only input param.\n\n### v2.0.0\n\n- authentication module needs to be used across applications so\n - register_username: will not create sessions and therefore will not auto login.\n - login: added validation if app is assigned to user before assigning it and added app_id in session row.\n - logout: added app_id as new parameter and validation for that.\n - generate_access_token: added app_id as new parameter and validation for that.\n- added 2 new endpoints\n - get user app ids: **access token validation pending**.\n - change user app ids: **access token validation pending**.\n- add versions for all endpoint paths.\n- make it compatible with square_database_helper 2.x.\n- username in database will always be lowercase.\n- standardise output formats for all api.\n\n### v1.0.0\n\n- initial implementation.\n\n## Feedback is appreciated. Thank you!\n\n",
"bugtrack_url": null,
"license": null,
"summary": "authentication layer for my personal server.",
"version": "4.3.0",
"project_urls": {
"Homepage": "https://github.com/thepmsquare/square_authentication"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c071ba1329f273179a033183a5a3c12ef1a6c5a2acd381552a959f022ad48453",
"md5": "f71e406430ce94cf417622aad0cd7f4f",
"sha256": "672276edd5d61b8d372e4def537672882a6345c10b8e079d4a365c9ca5e25f62"
},
"downloads": -1,
"filename": "square_authentication-4.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f71e406430ce94cf417622aad0cd7f4f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 13498,
"upload_time": "2024-12-21T14:44:16",
"upload_time_iso_8601": "2024-12-21T14:44:16.919655Z",
"url": "https://files.pythonhosted.org/packages/c0/71/ba1329f273179a033183a5a3c12ef1a6c5a2acd381552a959f022ad48453/square_authentication-4.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8ea121258712f2f24f1a9c465c53673335c15aab6eed59edf8584a9e1db94a87",
"md5": "431fb061045c2d033a3a6e9ddbc3cb20",
"sha256": "313281e888981ce7b756c83084b449f34abda0ed26c997e65223af856faa669c"
},
"downloads": -1,
"filename": "square_authentication-4.3.0.tar.gz",
"has_sig": false,
"md5_digest": "431fb061045c2d033a3a6e9ddbc3cb20",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 11382,
"upload_time": "2024-12-21T14:44:18",
"upload_time_iso_8601": "2024-12-21T14:44:18.995192Z",
"url": "https://files.pythonhosted.org/packages/8e/a1/21258712f2f24f1a9c465c53673335c15aab6eed59edf8584a9e1db94a87/square_authentication-4.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-21 14:44:18",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "thepmsquare",
"github_project": "square_authentication",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "square-authentication"
}