square-authentication 1.0.0__py3-none-any.whl → 3.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,5 @@
1
1
  from fastapi import APIRouter
2
2
 
3
- router = APIRouter(tags=["utility"], )
3
+ router = APIRouter(
4
+ tags=["utility"],
5
+ )
@@ -0,0 +1,79 @@
1
+ Metadata-Version: 2.1
2
+ Name: square-authentication
3
+ Version: 3.0.0
4
+ Summary: authentication layer for my personal server.
5
+ Home-page: https://github.com/thepmsquare/square_authentication
6
+ Author: thePmSquare
7
+ Author-email: thepmsquare@gmail.com
8
+ License: UNKNOWN
9
+ Platform: UNKNOWN
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: MIT License
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.9
15
+ Description-Content-Type: text/markdown
16
+ Requires-Dist: uvicorn>=0.24.0.post1
17
+ Requires-Dist: fastapi>=0.104.1
18
+ Requires-Dist: pydantic>=2.5.3
19
+ Requires-Dist: bcrypt>=4.1.2
20
+ Requires-Dist: pyjwt>=2.8.0
21
+ Requires-Dist: requests>=2.32.3
22
+ Requires-Dist: cryptography>=42.0.7
23
+ Requires-Dist: square-commons>=1.0.0
24
+ Requires-Dist: square-logger>=1.0.0
25
+ Requires-Dist: square-database-helper>=2.0.0
26
+ Requires-Dist: square-database-structure>=1.0.0
27
+
28
+ # square_authentication
29
+
30
+ ## about
31
+
32
+ authentication layer for my personal server.
33
+
34
+ ## Installation
35
+
36
+ ```shell
37
+ pip install square_authentication
38
+ ```
39
+
40
+ ## env
41
+
42
+ - python>=3.12.0
43
+
44
+ ## changelog
45
+
46
+ ### v3.0.0
47
+
48
+ - added new endpoints
49
+ - /update_username/v0
50
+ - /delete_user/v0
51
+ - /update_password/v0
52
+ - move data in password related endpoints to request body from params.
53
+ - /register_username/v0 now takes in app_id as optional parameter to assign user to that app and create session for it.
54
+ - /generate_access_token/v0 now only needs refresh token (removed validation).
55
+ - /logout/v0 now only needs refresh token (removed validation).
56
+ - /update_user_app_ids/v0 now only updates ids for self (user). added access token as input param and removed user_id.
57
+ - /get_user_app_ids/v0 is now /get_user_details/v0 with access token as the only input param.
58
+
59
+ ### v2.0.0
60
+
61
+ - authentication module needs to be used across applications so
62
+ - register_username: will not create sessions and therefore will not auto login.
63
+ - login: added validation if app is assigned to user before assigning it and added app_id in session row.
64
+ - logout: added app_id as new parameter and validation for that.
65
+ - generate_access_token: added app_id as new parameter and validation for that.
66
+ - added 2 new endpoints
67
+ - get user app ids: **access token validation pending**.
68
+ - change user app ids: **access token validation pending**.
69
+ - add versions for all endpoint paths.
70
+ - make it compatible with square_database_helper 2.x.
71
+ - username in database will always be lowercase.
72
+ - standardise output formats for all api.
73
+
74
+ ### v1.0.0
75
+
76
+ - initial implementation.
77
+
78
+ ## Feedback is appreciated. Thank you!
79
+
@@ -0,0 +1,17 @@
1
+ square_authentication/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ square_authentication/configuration.py,sha256=i0uNtNSQd-n1rBxFM6jsIz1Wy3d090RcdTViSqHKc7Y,2973
3
+ square_authentication/main.py,sha256=JK9KBmN73KL8EpKrXrjrwwf37bmC4AXrFHtfl2roYwQ,1636
4
+ square_authentication/messages.py,sha256=BA9KC0vW9UD1ZXT4VneVqVNLlgdbMdsAwAgxhJISLf4,1175
5
+ square_authentication/data/config.ini,sha256=_740RvKpL5W2bUDGwZ7ePwuP-mAasr5cXXB81yq_Jv8,906
6
+ square_authentication/pydantic_models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
+ square_authentication/pydantic_models/core.py,sha256=Bd6BPFPCV5PPA0KDKXUghIpoQA_w9MCSMY6ldSxM1qw,388
8
+ square_authentication/routes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
+ square_authentication/routes/core.py,sha256=ijTmFDi8wg0oFycQRqxpXk4j4t6IqXq0FHffjecAnkQ,43303
10
+ square_authentication/routes/utility.py,sha256=Kx4S4tZ1GKsPoC8CoZ4fkLEebvr02KeFEPePtTHtpnQ,75
11
+ square_authentication/utils/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
12
+ square_authentication/utils/encryption.py,sha256=T6BShoUr_xeGpbfPgTK-GxTlXPwcjwU4c4KW7KPzrF8,1865
13
+ square_authentication/utils/token.py,sha256=Y_arg5LegX-aprMj9YweUK8jjNZLGDjLUGgxbUA12w4,560
14
+ square_authentication-3.0.0.dist-info/METADATA,sha256=6ahIoM0u8VAAGmp48nmRWwNMBj9tnN5X2q8oMr-G3Tc,2622
15
+ square_authentication-3.0.0.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
16
+ square_authentication-3.0.0.dist-info/top_level.txt,sha256=wDssVJIl9KIEJPj5rR3rv4uRI7yCndMBrvHd_6BGXQA,22
17
+ square_authentication-3.0.0.dist-info/RECORD,,
@@ -1,51 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: square-authentication
3
- Version: 1.0.0
4
- Summary: authentication layer for my personal server.
5
- Home-page: https://github.com/thepmsquare/square_authentication
6
- Author: thePmSquare
7
- Author-email: thepmsquare@gmail.com
8
- License: UNKNOWN
9
- Platform: UNKNOWN
10
- Classifier: Development Status :: 3 - Alpha
11
- Classifier: Intended Audience :: Developers
12
- Classifier: License :: OSI Approved :: MIT License
13
- Classifier: Programming Language :: Python :: 3
14
- Classifier: Programming Language :: Python :: 3.9
15
- Description-Content-Type: text/markdown
16
- Requires-Dist: uvicorn>=0.24.0.post1
17
- Requires-Dist: fastapi>=0.104.1
18
- Requires-Dist: pydantic>=2.5.3
19
- Requires-Dist: bcrypt>=4.1.2
20
- Requires-Dist: pyjwt>=2.8.0
21
- Requires-Dist: requests>=2.32.3
22
- Requires-Dist: cryptography>=42.0.7
23
- Requires-Dist: square-commons>=0.0.1
24
- Requires-Dist: square-logger>=1.0.0
25
- Requires-Dist: square-database-helper>=0.0.5
26
- Requires-Dist: square-database-structure>=0.0.11
27
-
28
- # square_authentication
29
-
30
- ## about
31
-
32
- authentication layer for my personal server.
33
-
34
- ## Installation
35
-
36
- ```shell
37
- pip install square_authentication
38
- ```
39
-
40
- ## env
41
-
42
- - python>=3.12.0
43
-
44
- ## changelog
45
-
46
- ### v1.0.0
47
-
48
- - initial implementation.
49
-
50
- ## Feedback is appreciated. Thank you!
51
-
@@ -1,14 +0,0 @@
1
- square_authentication/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- square_authentication/configuration.py,sha256=9rRznQcfsUd_o-OnYjdBJSiLa30_5o5BXJjzhZPLUqc,2993
3
- square_authentication/main.py,sha256=01bu19koJNkJoz2VadPiV9M6TaIRoFEs5UabJfD6Tjo,1528
4
- square_authentication/data/config.ini,sha256=_740RvKpL5W2bUDGwZ7ePwuP-mAasr5cXXB81yq_Jv8,906
5
- square_authentication/routes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- square_authentication/routes/core.py,sha256=cZduu9VUMrrkrBYsR9elorQ6aPqpVAkV2f_4P8tKEto,20210
7
- square_authentication/routes/utility.py,sha256=qFvXfmWqBhUAEQQq9StmY9tERVUoVE7Fe07dhVPZPoU,70
8
- square_authentication/utils/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
9
- square_authentication/utils/encryption.py,sha256=T6BShoUr_xeGpbfPgTK-GxTlXPwcjwU4c4KW7KPzrF8,1865
10
- square_authentication/utils/token.py,sha256=Y_arg5LegX-aprMj9YweUK8jjNZLGDjLUGgxbUA12w4,560
11
- square_authentication-1.0.0.dist-info/METADATA,sha256=vBdyC4c-vg7SWkg4GnxnAOtoRVPmAGzNBa4nD8LU60U,1209
12
- square_authentication-1.0.0.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
13
- square_authentication-1.0.0.dist-info/top_level.txt,sha256=wDssVJIl9KIEJPj5rR3rv4uRI7yCndMBrvHd_6BGXQA,22
14
- square_authentication-1.0.0.dist-info/RECORD,,