Skip to main content

Helpers

The helper functions for the jwt and echo endpoints

Functions

FunctionDescription
extractAdaptHeadersExtracts adapt headers from a request and creates a new object
fixNameTakes the name from the client certificate and parses / cleans / fixes it to be more accurate. For instance a common mil is LAST.FIRST.MIDDLE.NUMBER, which we want to parse down to FIRST LAST.
validateX509AuthenticationHeadersValidates 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.