middleware(logoutUrl) { // Return the Keycloak middleware. // // Specifies that the user-accessible application URL to // logout should be mounted at /logout // // Specifies that Keycloak console callbacks should target the // root URL. Various permutations, such as /k_logout will ultimately // be appended to the admin URL. let result = this.keyCloak.middleware({ logout: logoutUrl, admin: '/' }); result.push(this.createSecurityMiddleware()); return result; }