• Validates the message envelope 'auth_token' and converts the message object into type 'AuthenticatedManagementSubjectMessageInfo' if a subject could be parsed.

    Type Parameters

    • TContent = unknown

    Parameters

    • authParams: string | AuthenticationConfig

      The ID Service Auth Endpoint or an instance of AuthenticationConfig containing ID service connection information.

    • enforceAuthentication: boolean = true

      optional, if it is set to true (default) it will throw an Error if the subject could not be resolved.

    Returns OnMessageMiddleware<TContent>

Generated using TypeDoc