@simitgroup/simpleapp-generator 1.6.6-h-alpha → 1.6.6-i-alpha
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/ReleaseNote.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
[1.6.6i-alpha]
|
|
2
|
+
1. Fix a-api-key env.
|
|
3
|
+
|
|
4
|
+
[1.6.6h-alpha]
|
|
5
|
+
1. Fix package.json
|
|
6
|
+
|
|
1
7
|
[1.6.6g-alpha]
|
|
2
8
|
1. improve x-api-key & x-api-secret, fix schema example
|
|
3
9
|
2. Fix getAvatarByUid.
|
|
@@ -26,7 +32,7 @@
|
|
|
26
32
|
|
|
27
33
|
[1.6.5g]
|
|
28
34
|
1. change simpleapp document controller use document name instead of document type
|
|
29
|
-
2. allow use header x-api-key(match env
|
|
35
|
+
2. allow use header x-api-key(match env X_API_KEY), x-api-secret (match env X_API_SECRET), to by pass access token. which will use robotuser in user context
|
|
30
36
|
3. add support of x-guest-accesstoken (submit by external user source, like parent/student app), it store into usercontext as guestinfo, since appuser = robotuser
|
|
31
37
|
4. Fix document search properties to restrict (required field and sorts)
|
|
32
38
|
|
package/package.json
CHANGED
package/templates/nest/.env._eta
CHANGED
|
@@ -69,9 +69,9 @@ export class TenantMiddleware implements NestMiddleware {
|
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
//if APIKEY defined, and there is api key and secret supplied. use robot user
|
|
72
|
-
if(process.env.
|
|
72
|
+
if(process.env.X_API_KEY &&req.headers['x-api-key'] && req.headers['x-api-secret']){
|
|
73
73
|
|
|
74
|
-
if(req.headers['x-api-key']==process.env.
|
|
74
|
+
if(req.headers['x-api-key']==process.env.X_API_KEY &&
|
|
75
75
|
req.headers['x-api-secret']==process.env.X_API_SECRET){
|
|
76
76
|
|
|
77
77
|
u.setAsStaticUser(
|