Axinom Mosaic Libraries
    Preparing search index...

    Function setupEndUserAuthentication

    • This is an Express Middleware for setting up Authentication for End-User Applications related services. All routes passed into this middleware will require an authentication token to be accessed.

      Parameters

      • app: Express

        the Express app instance.

      • guardRoutes: string[]

        an array of routes that needs to be protected.

      • authParams: string | AuthenticationConfig

        A string with the User Service Auth Endpoint or an instance of AuthenticationConfig containing User service connection information. For non-managed services, providing AuthenticationConfig with correct tenant and environment IDs is mandatory.

      Returns void