a little more cleanup w/ burnettk

This commit is contained in:
jasquat 2023-01-12 11:32:52 -05:00
parent f756453b34
commit 3cae7055a1
3 changed files with 3 additions and 13 deletions

View File

@ -38,9 +38,7 @@ OPEN_ID_SERVER_URL = environ.get(
# OPEN_ID_SERVER_URL = environ.get("OPEN_ID_SERVER_URL", default="http://localhost:7000/openid")
OPEN_ID_CLIENT_ID = environ.get("OPEN_ID_CLIENT_ID", default="spiffworkflow-backend")
OPEN_ID_CLIENT_SECRET_KEY = environ.get(
# "OPEN_ID_CLIENT_SECRET_KEY", default="JXeQExm0JhQPLumgHtIIqf52bDalHz0q"
"OPEN_ID_CLIENT_SECRET_KEY",
default="JXeQExm0JhQPLumgHtIIqf52bDalHz0q",
"OPEN_ID_CLIENT_SECRET_KEY", default="JXeQExm0JhQPLumgHtIIqf52bDalHz0q"
) # noqa: S105
SPIFFWORKFLOW_BACKEND_LOG_TO_FILE = (

View File

@ -1,6 +1,5 @@
"""APIs for dealing with process groups, process models, and process instances."""
import json
from flask import make_response
from flask.wrappers import Response
from spiffworkflow_backend.models.process_instance import ProcessInstanceModel
@ -9,7 +8,4 @@ from spiffworkflow_backend.models.process_instance import ProcessInstanceModel
def status() -> Response:
"""Status."""
ProcessInstanceModel.query.filter().first()
response = Response(
json.dumps({"ok": True}), status=200, mimetype="application/json"
)
return response
return make_response({"ok": True}, 200)

View File

@ -25,10 +25,6 @@ from spiffworkflow_backend.services.authentication_service import TokenExpiredEr
from spiffworkflow_backend.services.authorization_service import AuthorizationService
from spiffworkflow_backend.services.user_service import UserService
# from flask.wrappers import Response
# from flask_jwt_extended import set_access_cookies
"""
.. module:: crc.api.user
:synopsis: Single Sign On (SSO) user login and session handlers