updated auth identifier header name to include spiffworkflow w/ burnettk

This commit is contained in:
jasquat 2023-11-09 15:45:52 -05:00
parent 07895d3965
commit 1596076a15
2 changed files with 3 additions and 3 deletions

View File

@ -465,7 +465,7 @@ def _parse_id_token(token: str) -> Any:
def _get_authentication_identifier_from_request() -> str: def _get_authentication_identifier_from_request() -> str:
if "authentication_identifier" in request.cookies: if "authentication_identifier" in request.cookies:
return request.cookies["authentication_identifier"] return request.cookies["authentication_identifier"]
if "Authentication-Identifier" in request.headers: if "SpiffWorkflow-Authentication-Identifier" in request.headers:
authentication_identifier: str = request.headers["Authentication-Identifier"] authentication_identifier: str = request.headers["SpiffWorkflow-Authentication-Identifier"]
return authentication_identifier return authentication_identifier
return "default" return "default"

View File

@ -12,7 +12,7 @@ export const getBasicHeaders = (): Record<string, string> => {
if (UserService.isLoggedIn()) { if (UserService.isLoggedIn()) {
return { return {
Authorization: `Bearer ${UserService.getAccessToken()}`, Authorization: `Bearer ${UserService.getAccessToken()}`,
'Authentication-Identifier': 'SpiffWorkflow-Authentication-Identifier':
UserService.getAuthenticationIdentifier() || '', UserService.getAuthenticationIdentifier() || '',
}; };
} }