updated auth identifier header name to include spiffworkflow w/ burnettk
This commit is contained in:
parent
07895d3965
commit
1596076a15
|
@ -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"
|
||||
|
|
|
@ -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() || '',
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue