square-authentication 6.0.4__tar.gz → 6.0.5__tar.gz

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.
Files changed (25) hide show
  1. {square_authentication-6.0.4 → square_authentication-6.0.5}/PKG-INFO +6 -1
  2. {square_authentication-6.0.4 → square_authentication-6.0.5}/README.md +5 -0
  3. {square_authentication-6.0.4 → square_authentication-6.0.5}/setup.py +1 -1
  4. {square_authentication-6.0.4 → square_authentication-6.0.5}/square_authentication/configuration.py +3 -0
  5. {square_authentication-6.0.4 → square_authentication-6.0.5}/square_authentication/data/config.ini +1 -0
  6. {square_authentication-6.0.4 → square_authentication-6.0.5}/square_authentication/data/config.testing.ini +1 -0
  7. {square_authentication-6.0.4 → square_authentication-6.0.5}/square_authentication/main.py +2 -1
  8. {square_authentication-6.0.4 → square_authentication-6.0.5}/square_authentication.egg-info/PKG-INFO +6 -1
  9. {square_authentication-6.0.4 → square_authentication-6.0.5}/setup.cfg +0 -0
  10. {square_authentication-6.0.4 → square_authentication-6.0.5}/square_authentication/__init__.py +0 -0
  11. {square_authentication-6.0.4 → square_authentication-6.0.5}/square_authentication/messages.py +0 -0
  12. {square_authentication-6.0.4 → square_authentication-6.0.5}/square_authentication/pydantic_models/__init__.py +0 -0
  13. {square_authentication-6.0.4 → square_authentication-6.0.5}/square_authentication/pydantic_models/core.py +0 -0
  14. {square_authentication-6.0.4 → square_authentication-6.0.5}/square_authentication/routes/__init__.py +0 -0
  15. {square_authentication-6.0.4 → square_authentication-6.0.5}/square_authentication/routes/core.py +0 -0
  16. {square_authentication-6.0.4 → square_authentication-6.0.5}/square_authentication/routes/profile.py +0 -0
  17. {square_authentication-6.0.4 → square_authentication-6.0.5}/square_authentication/routes/utility.py +0 -0
  18. {square_authentication-6.0.4 → square_authentication-6.0.5}/square_authentication/utils/__init__.py +0 -0
  19. {square_authentication-6.0.4 → square_authentication-6.0.5}/square_authentication/utils/encryption.py +0 -0
  20. {square_authentication-6.0.4 → square_authentication-6.0.5}/square_authentication/utils/token.py +0 -0
  21. {square_authentication-6.0.4 → square_authentication-6.0.5}/square_authentication.egg-info/SOURCES.txt +0 -0
  22. {square_authentication-6.0.4 → square_authentication-6.0.5}/square_authentication.egg-info/dependency_links.txt +0 -0
  23. {square_authentication-6.0.4 → square_authentication-6.0.5}/square_authentication.egg-info/requires.txt +0 -0
  24. {square_authentication-6.0.4 → square_authentication-6.0.5}/square_authentication.egg-info/top_level.txt +0 -0
  25. {square_authentication-6.0.4 → square_authentication-6.0.5}/tests/test_1.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: square_authentication
3
- Version: 6.0.4
3
+ Version: 6.0.5
4
4
  Summary: authentication layer for my personal server.
5
5
  Home-page: https://github.com/thepmsquare/square_authentication
6
6
  Author: thePmSquare
@@ -53,6 +53,11 @@ pip install square_authentication
53
53
 
54
54
  ## changelog
55
55
 
56
+ ### v6.0.5
57
+
58
+ - env
59
+ - add ALLOW_ORIGINS
60
+
56
61
  ### v6.0.4
57
62
 
58
63
  - mock ini file for pytest.
@@ -16,6 +16,11 @@ pip install square_authentication
16
16
 
17
17
  ## changelog
18
18
 
19
+ ### v6.0.5
20
+
21
+ - env
22
+ - add ALLOW_ORIGINS
23
+
19
24
  ### v6.0.4
20
25
 
21
26
  - mock ini file for pytest.
@@ -4,7 +4,7 @@ package_name = "square_authentication"
4
4
 
5
5
  setup(
6
6
  name=package_name,
7
- version="6.0.4",
7
+ version="6.0.5",
8
8
  packages=find_packages(),
9
9
  package_data={
10
10
  package_name: ["data/*"],
@@ -22,6 +22,9 @@ try:
22
22
  # environment
23
23
  config_str_host_ip = ldict_configuration["ENVIRONMENT"]["HOST_IP"]
24
24
  config_int_host_port = int(ldict_configuration["ENVIRONMENT"]["HOST_PORT"])
25
+ config_list_allow_origins = eval(
26
+ ldict_configuration["ENVIRONMENT"]["ALLOW_ORIGINS"]
27
+ )
25
28
  config_str_log_file_name = ldict_configuration["ENVIRONMENT"]["LOG_FILE_NAME"]
26
29
  config_str_secret_key_for_access_token = ldict_configuration["ENVIRONMENT"][
27
30
  "SECRET_KEY_FOR_ACCESS_TOKEN"
@@ -4,6 +4,7 @@ MODULE_NAME = square_authentication
4
4
  [ENVIRONMENT]
5
5
  HOST_IP = 0.0.0.0
6
6
  HOST_PORT = 10011
7
+ ALLOW_ORIGINS = ["http://localhost:10011"]
7
8
 
8
9
  LOG_FILE_NAME = square_authentication
9
10
 
@@ -4,6 +4,7 @@ MODULE_NAME = square_authentication
4
4
  [ENVIRONMENT]
5
5
  HOST_IP = 0.0.0.0
6
6
  HOST_PORT = 10011
7
+ ALLOW_ORIGINS = ["http://localhost:10011"]
7
8
 
8
9
  LOG_FILE_NAME = square_authentication
9
10
 
@@ -13,6 +13,7 @@ from square_authentication.configuration import (
13
13
  config_str_module_name,
14
14
  config_str_ssl_key_file_path,
15
15
  config_str_ssl_crt_file_path,
16
+ config_list_allow_origins,
16
17
  )
17
18
  from square_authentication.routes import core, utility, profile
18
19
 
@@ -21,7 +22,7 @@ app = FastAPI()
21
22
  app.add_middleware(
22
23
  CORSMiddleware,
23
24
  allow_credentials=True,
24
- allow_origins=["*"],
25
+ allow_origins=config_list_allow_origins,
25
26
  allow_methods=["*"],
26
27
  allow_headers=["*"],
27
28
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: square_authentication
3
- Version: 6.0.4
3
+ Version: 6.0.5
4
4
  Summary: authentication layer for my personal server.
5
5
  Home-page: https://github.com/thepmsquare/square_authentication
6
6
  Author: thePmSquare
@@ -53,6 +53,11 @@ pip install square_authentication
53
53
 
54
54
  ## changelog
55
55
 
56
+ ### v6.0.5
57
+
58
+ - env
59
+ - add ALLOW_ORIGINS
60
+
56
61
  ### v6.0.4
57
62
 
58
63
  - mock ini file for pytest.