Skip to content

Commit

Permalink
updated auth identifier header name to include spiffworkflow w/ burnettk
Browse files Browse the repository at this point in the history
  • Loading branch information
jasquat committed Nov 9, 2023
1 parent f05b084 commit bbe2293
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion spiffworkflow-frontend/src/services/HttpService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const getBasicHeaders = (): Record<string, string> => {
if (UserService.isLoggedIn()) {
return {
Authorization: `Bearer ${UserService.getAccessToken()}`,
'Authentication-Identifier':
'SpiffWorkflow-Authentication-Identifier':
UserService.getAuthenticationIdentifier() || '',
};
}
Expand Down

0 comments on commit bbe2293

Please sign in to comment.