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:
|
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"
|
||||||
|
|
|
@ -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() || '',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue