Function: validateX509AuthenticationHeaders()
function validateX509AuthenticationHeaders(headers, queryParams?): Promise<{
auth_source: ISession_Data_Auth_Source;
token: string;
user_info: IKeyValue;
}>;
Defined in: helpers.ts:57
Validates the x509 Authentication Headers from the CAC auth login methods. This function will process the headers for usage by other SME Connect services. It will create the UUID, uid, name, and other user data based on the CAC headers. Both CAC users and the Tools Gateway/Tools will use this function.
Parameters
| Parameter | Type | Description |
|---|---|---|
headers | IKeyValue | Object of headers processed by APIM. |
queryParams? | URLSearchParams | Parameters to process tool data (includes the tool serial # and class/device) |
Returns
Promise<{
auth_source: ISession_Data_Auth_Source;
token: string;
user_info: IKeyValue;
}>
An authentication object with a JWT, updated user information, and details about the auth source