ApiLogicServer 15.0.12__py3-none-any.whl → 15.0.14__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.
- api_logic_server_cli/api_logic_server.py +2 -1
- api_logic_server_cli/prototypes/base/config/config.py +7 -14
- {apilogicserver-15.0.12.dist-info → apilogicserver-15.0.14.dist-info}/METADATA +1 -1
- {apilogicserver-15.0.12.dist-info → apilogicserver-15.0.14.dist-info}/RECORD +8 -8
- {apilogicserver-15.0.12.dist-info → apilogicserver-15.0.14.dist-info}/WHEEL +0 -0
- {apilogicserver-15.0.12.dist-info → apilogicserver-15.0.14.dist-info}/entry_points.txt +0 -0
- {apilogicserver-15.0.12.dist-info → apilogicserver-15.0.14.dist-info}/licenses/LICENSE +0 -0
- {apilogicserver-15.0.12.dist-info → apilogicserver-15.0.14.dist-info}/top_level.txt +0 -0
|
@@ -12,9 +12,10 @@ ApiLogicServer CLI: given a database url, create [and run] customizable ApiLogic
|
|
|
12
12
|
Called from api_logic_server_cli.py, by instantiating the ProjectRun object.
|
|
13
13
|
'''
|
|
14
14
|
|
|
15
|
-
__version__ = "15.00.
|
|
15
|
+
__version__ = "15.00.14" # last public release: 15.00.12 (15.00.10)
|
|
16
16
|
recent_changes = \
|
|
17
17
|
f'\n\nRecent Changes:\n' +\
|
|
18
|
+
"\t06/11/2024 - 15.00.14: MCP Security, win fixes for readme, graphics quotes, Keycloak provider fix \n"\
|
|
18
19
|
"\t06/10/2024 - 15.00.12: MCP Security, win fixes for readme, graphics quotes \n"\
|
|
19
20
|
"\t06/08/2024 - 15.00.10: MCP, optional shortening of stacktrace lines, bugfix[92] \n"\
|
|
20
21
|
"\t05/16/2024 - 14.05.00: safrs 3.1.7, running mcp preview \n"\
|
|
@@ -162,24 +162,17 @@ class Config:
|
|
|
162
162
|
''' keycloak client id '''
|
|
163
163
|
|
|
164
164
|
SECURITY_ENABLED = os.getenv("SECURITY_ENABLED",False)
|
|
165
|
-
SECURITY_PROVIDER = None
|
|
165
|
+
SECURITY_PROVIDER = os.getenv('SECURITY_PROVIDER', None) # type: ignore # type: str
|
|
166
166
|
if os.getenv('SECURITY_ENABLED'): # e.g. export SECURITY_ENABLED=true
|
|
167
|
-
security_export = os.getenv('SECURITY_ENABLED') # type: ignore # type: str
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
SECURITY_ENABLED = False # to remove env: unset SECURITY_ENABLED
|
|
171
|
-
else:
|
|
172
|
-
SECURITY_ENABLED = True
|
|
173
|
-
app_logger.debug(f'Security .. overridden from env variable: {SECURITY_ENABLED}')
|
|
167
|
+
security_export = os.getenv('SECURITY_ENABLED','false').lower() # type: ignore # type: str
|
|
168
|
+
SECURITY_ENABLED = security_export not in ["false", "no"] # NO SEC
|
|
169
|
+
app_logger.debug(f'Security .. overridden from env variable SECURITY_ENABLED: {SECURITY_ENABLED}')
|
|
174
170
|
if SECURITY_ENABLED:
|
|
175
171
|
from security.authentication_provider.sql.auth_provider import Authentication_Provider
|
|
176
172
|
# typically, authentication_provider is [ keycloak | sql ]
|
|
177
|
-
SECURITY_PROVIDER = Authentication_Provider
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
app_logger.info(f'config.py - security disabled')
|
|
181
|
-
|
|
182
|
-
app_logger.info(f'SECURITY_PROVIDER={SECURITY_PROVIDER}')
|
|
173
|
+
SECURITY_PROVIDER = Authentication_Provider if SECURITY_PROVIDER is None else SECURITY_PROVIDER
|
|
174
|
+
|
|
175
|
+
app_logger.info(f'config.py - security enabled: {SECURITY_ENABLED} using SECURITY_PROVIDER: {SECURITY_PROVIDER}')
|
|
183
176
|
|
|
184
177
|
# Begin Multi-Database URLs (from ApiLogicServer add-db...)
|
|
185
178
|
auth_db_path = str(project_path.joinpath('database/authentication_db.sqlite'))
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
api_logic_server_cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
api_logic_server_cli/api_logic_server.py,sha256=
|
|
2
|
+
api_logic_server_cli/api_logic_server.py,sha256=DktpRaHa9wbt460qx5D7xjVbsy7mFH1JTdAbVD8nEns,96350
|
|
3
3
|
api_logic_server_cli/api_logic_server_info.yaml,sha256=VRVVogLlo_BUnHluq_A9eMQ8Ogw4SvENWJZyz1fxSL4,128
|
|
4
4
|
api_logic_server_cli/cli.py,sha256=AT1cWszOygHWIbpxDoXFhaTeSai3Tf5SbGoXvN4h510,83134
|
|
5
5
|
api_logic_server_cli/cli_args_base.py,sha256=lr27KkOB7_WpZwTs7LgiK8LKDIHMKQkoZCTnE99BFxw,3280
|
|
@@ -550,7 +550,7 @@ api_logic_server_cli/prototypes/base/api/system/opt_locking/opt_locking.py,sha25
|
|
|
550
550
|
api_logic_server_cli/prototypes/base/api/system/opt_locking/readme.md,sha256=Ja_-d-mxHAvOFslu6jlu18HQ3CSFaaSvphHMm3YM-Z8,6760
|
|
551
551
|
api_logic_server_cli/prototypes/base/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
552
552
|
api_logic_server_cli/prototypes/base/config/activate_logicbank.py,sha256=IuDe3uWcbQBtBzLAXsN45sr91sUYvM5OO5ggEk_XnRA,2198
|
|
553
|
-
api_logic_server_cli/prototypes/base/config/config.py,sha256=
|
|
553
|
+
api_logic_server_cli/prototypes/base/config/config.py,sha256=Qwy9id_Sg_uq_ht5vsKfX8pk9RFIQWA6ot08TTGh8Rk,30783
|
|
554
554
|
api_logic_server_cli/prototypes/base/config/default.env,sha256=-rjXJrjR4vjMr9YCVYVchaJw7qMBlbvQ3KfR_wri_XM,412
|
|
555
555
|
api_logic_server_cli/prototypes/base/config/logging-reduced.yml,sha256=N-BDIk0t5uAmw3Of_d_ueK4jx7pxNwlYbkiDd1wjRDs,2179
|
|
556
556
|
api_logic_server_cli/prototypes/base/config/logging.yml,sha256=Rj7lwLAQ1fiP5al5KZxL8f5CXuICpGJDuJiLJbqcQTE,2426
|
|
@@ -2188,9 +2188,9 @@ api_logic_server_cli/tools/mini_skel/database/system/SAFRSBaseX.py,sha256=p8C7AF
|
|
|
2188
2188
|
api_logic_server_cli/tools/mini_skel/database/system/TestDataBase.py,sha256=U02SYqThsbY5g3DX7XGaiMxjZBuOpzvtPS6RfI1WQFg,371
|
|
2189
2189
|
api_logic_server_cli/tools/mini_skel/logic/declare_logic.py,sha256=fTrlHyqMeZsw_TyEXFa1VlYBL7fzjZab5ONSXO7aApo,175
|
|
2190
2190
|
api_logic_server_cli/tools/mini_skel/logic/load_verify_rules.py,sha256=Rr5bySJpYCZmNPF2h-phcPJ53nAOPcT_ohZpCD93-a0,7530
|
|
2191
|
-
apilogicserver-15.0.
|
|
2192
|
-
apilogicserver-15.0.
|
|
2193
|
-
apilogicserver-15.0.
|
|
2194
|
-
apilogicserver-15.0.
|
|
2195
|
-
apilogicserver-15.0.
|
|
2196
|
-
apilogicserver-15.0.
|
|
2191
|
+
apilogicserver-15.0.14.dist-info/licenses/LICENSE,sha256=67BS7VC-Z8GpaR3wijngQJkHWV04qJrwQArVgn9ldoI,1485
|
|
2192
|
+
apilogicserver-15.0.14.dist-info/METADATA,sha256=gmMhBHI5h5sj3AqvJur19FMBs1BJY6x_jofWh6uRiXQ,6553
|
|
2193
|
+
apilogicserver-15.0.14.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
2194
|
+
apilogicserver-15.0.14.dist-info/entry_points.txt,sha256=KiLloZJ3c_RW-nIDqBtoE0WEsQTnZ3dELwHLWi23LMA,103
|
|
2195
|
+
apilogicserver-15.0.14.dist-info/top_level.txt,sha256=-r0AT_GEApleihg-jIh0OMvzzc0BO1RuhhOpE91H5qI,21
|
|
2196
|
+
apilogicserver-15.0.14.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|