propro-utils 1.7.38 → 1.7.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +9 -2
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -90,6 +90,8 @@ class ProProAuthMiddleware {
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
initializeServerAuth() {
|
|
93
|
+
console.log("INITIALIZE SERVER AUTH: Entered", this.serverAuth);
|
|
94
|
+
|
|
93
95
|
if (!this.serverAuth) {
|
|
94
96
|
this.serverAuth = new ServerAuth(
|
|
95
97
|
this.options.serverOptions,
|
|
@@ -100,12 +102,17 @@ class ProProAuthMiddleware {
|
|
|
100
102
|
this.redisClient
|
|
101
103
|
);
|
|
102
104
|
}
|
|
103
|
-
|
|
105
|
+
console.log("INITIALIZE SERVER AUTH: UserSchema", this.serverAuth);
|
|
104
106
|
ServiceManager.registerService('UserSchema', this.userSchema);
|
|
107
|
+
console.log('INITIALIZE SERVER AUTH: UserStyleSchema', this.userStyleSchema);
|
|
105
108
|
ServiceManager.registerService('UserStyleSchema', this.userStyleSchema);
|
|
109
|
+
console.log('INITIALIZE SERVER AUTH: RedisClient', this.redisClient);
|
|
106
110
|
ServiceManager.registerService('RedisClient', this.redisClient);
|
|
111
|
+
console.log('INITIALIZE SERVER AUTH: FolderSchema', this.folderSchema);
|
|
107
112
|
ServiceManager.registerService('FolderSchema', this.folderSchema);
|
|
113
|
+
console.log('INITIALIZE SERVER AUTH: ThemeSchema', this.themeSchema);
|
|
108
114
|
ServiceManager.registerService('ThemeSchema', this.themeSchema);
|
|
115
|
+
console.log('INITIALIZE SERVER AUTH: Exited');
|
|
109
116
|
return this.serverAuth.middleware();
|
|
110
117
|
}
|
|
111
118
|
|
|
@@ -118,7 +125,7 @@ class ProProAuthMiddleware {
|
|
|
118
125
|
|
|
119
126
|
middleware() {
|
|
120
127
|
return (req, res, next) => {
|
|
121
|
-
console.log("MIDDLEWARE: Entered")
|
|
128
|
+
console.log("MIDDLEWARE: Entered", this.options)
|
|
122
129
|
try {
|
|
123
130
|
if (this.options.useServerAuth) {
|
|
124
131
|
return this.initializeServerAuth()(req, res, next);
|