fix(routes): Pass licenseManager and other deps to auth/sso-gate
This commit is contained in:
@@ -22,7 +22,12 @@ module.exports = function(ctx) {
|
|||||||
session: ctx.session,
|
session: ctx.session,
|
||||||
asyncHandler: ctx.asyncHandler,
|
asyncHandler: ctx.asyncHandler,
|
||||||
errorResponse: ctx.errorResponse,
|
errorResponse: ctx.errorResponse,
|
||||||
log: ctx.log
|
log: ctx.log,
|
||||||
|
// Additional deps for sso-gate
|
||||||
|
fetchT: ctx.fetchT,
|
||||||
|
getServiceById: ctx.getServiceById,
|
||||||
|
licenseManager: ctx.licenseManager,
|
||||||
|
servicesStateManager: ctx.servicesStateManager
|
||||||
};
|
};
|
||||||
|
|
||||||
const { getAppSession, appSessionCache } = initSessionHandlers(deps);
|
const { getAppSession, appSessionCache } = initSessionHandlers(deps);
|
||||||
|
|||||||
Reference in New Issue
Block a user