From 1596076a15e64563f299a1a943743284ecc3af32 Mon Sep 17 00:00:00 2001 From: jasquat Date: Thu, 9 Nov 2023 15:45:52 -0500 Subject: [PATCH] updated auth identifier header name to include spiffworkflow w/ burnettk --- .../spiffworkflow_backend/routes/authentication_controller.py | 4 ++-- spiffworkflow-frontend/src/services/HttpService.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/routes/authentication_controller.py b/spiffworkflow-backend/src/spiffworkflow_backend/routes/authentication_controller.py index d83672d13..79ff9ef4e 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/routes/authentication_controller.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/routes/authentication_controller.py @@ -465,7 +465,7 @@ def _parse_id_token(token: str) -> Any: def _get_authentication_identifier_from_request() -> str: if "authentication_identifier" in request.cookies: return request.cookies["authentication_identifier"] - if "Authentication-Identifier" in request.headers: - authentication_identifier: str = request.headers["Authentication-Identifier"] + if "SpiffWorkflow-Authentication-Identifier" in request.headers: + authentication_identifier: str = request.headers["SpiffWorkflow-Authentication-Identifier"] return authentication_identifier return "default" diff --git a/spiffworkflow-frontend/src/services/HttpService.ts b/spiffworkflow-frontend/src/services/HttpService.ts index 44b6293c0..fee597d3f 100644 --- a/spiffworkflow-frontend/src/services/HttpService.ts +++ b/spiffworkflow-frontend/src/services/HttpService.ts @@ -12,7 +12,7 @@ export const getBasicHeaders = (): Record => { if (UserService.isLoggedIn()) { return { Authorization: `Bearer ${UserService.getAccessToken()}`, - 'Authentication-Identifier': + 'SpiffWorkflow-Authentication-Identifier': UserService.getAuthenticationIdentifier() || '', }; }