Haufe-Lexware / wicked.haufe.io

An API Management system based on Mashape Kong
http://wicked.haufe.io
Other
123 stars 37 forks source link

JSON circular reference in debug statement: wicked.auth #188

Closed maksimlikharev closed 5 years ago

maksimlikharev commented 5 years ago

incorrect order: https://github.com/apim-haufe-io/wicked.auth/blob/next/src/common/redis-connection.ts#L36

sessionStoreOptions.client = redisConnection.getRedis();

//this will die with circular reference error, because sessionStoreOptions.client is complex object

debug('Using redis session store with options ' + JSON.stringify(sessionStoreOptions));

debug statement should be before client is assigned.