I’m trying to register the NodeJS Keycloak Connect (0.22) with Express routes, such as:
var foo = require('./routes/foo’);
The problems are:
1. Adding the Keycloak protect middleware with "app.use(‘foo’, keycloak.protect(), foo)” causes infinite redirects
When dealing with large applications, it’s not feasible to register all routes in the main Express file.
Any pointers or am I missing something?
Thanks in advance,
Smartling | Senior Software Engineer