a little more cleanup w/ burnettk

This commit is contained in:
jasquat 2023-01-12 11:32:52 -05:00
parent 4224916917
commit 761ffd79da
4 changed files with 5 additions and 15 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_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_ID = environ.get("OPEN_ID_CLIENT_ID", default="spiffworkflow-backend")
OPEN_ID_CLIENT_SECRET_KEY = environ.get( 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 ) # noqa: S105
SPIFFWORKFLOW_BACKEND_LOG_TO_FILE = ( SPIFFWORKFLOW_BACKEND_LOG_TO_FILE = (

View File

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

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.authorization_service import AuthorizationService
from spiffworkflow_backend.services.user_service import UserService 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 .. module:: crc.api.user
:synopsis: Single Sign On (SSO) user login and session handlers :synopsis: Single Sign On (SSO) user login and session handlers

View File

@ -208,10 +208,10 @@ export const refreshAtInterval = (
timeout: number, timeout: number,
func: Function func: Function
) => { ) => {
const intervalRef = setInterval(() => func(), interval * 100000); const intervalRef = setInterval(() => func(), interval * 1000);
const timeoutRef = setTimeout( const timeoutRef = setTimeout(
() => clearInterval(intervalRef), () => clearInterval(intervalRef),
timeout * 100000 timeout * 1000
); );
return () => { return () => {
clearInterval(intervalRef); clearInterval(intervalRef);