diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/models/service_account.py b/spiffworkflow-backend/src/spiffworkflow_backend/models/service_account.py index 20d806405..8fd843837 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/models/service_account.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/models/service_account.py @@ -13,7 +13,7 @@ from spiffworkflow_backend.models.db import db # this is designed to be used for the "service" column on the user table, which is designed to hold # information about which authentiation system is used to authenticate this user. -# in this case, we are authenticating based on SpiffWorkflow-Api-key which correlates to a known value in the spiff db. +# in this case, we are authenticating based on SpiffWorkflow-Api-Key which correlates to a known value in the spiff db. SPIFF_SERVICE_ACCOUNT_AUTH_SERVICE = "spiff_service_account" SPIFF_SERVICE_ACCOUNT_AUTH_SERVICE_ID_PREFIX = "service_account_" diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/routes/authentication_controller.py b/spiffworkflow-backend/src/spiffworkflow_backend/routes/authentication_controller.py index 43d185a6e..7b7d672b3 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/routes/authentication_controller.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/routes/authentication_controller.py @@ -317,8 +317,8 @@ def _find_token_from_headers(token: str | None) -> dict[str, str | None]: ): token = request.cookies["access_token"] - if not token and "SpiffWorkflow-Api-key" in request.headers: - api_key = request.headers["SpiffWorkflow-Api-key"] + if not token and "SpiffWorkflow-Api-Key" in request.headers: + api_key = request.headers["SpiffWorkflow-Api-Key"] token_info = {"token": token, "api_key": api_key} return token_info