kauth-sdk-node 2.0.2-alpha.0 → 2.0.4

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.
@@ -4,6 +4,7 @@ export interface KauthConfig {
4
4
  jwtSecret: string;
5
5
  jwtDuration: number;
6
6
  permissionsInjected: boolean;
7
+ permissionsInjectedBlacklist?: string[];
7
8
  googleAuthorizeUri: string;
8
9
  googleTokenUri: string;
9
10
  googleBindUri: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kauth-sdk-node",
3
- "version": "2.0.2-alpha.0",
3
+ "version": "2.0.4",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -21,10 +21,6 @@
21
21
  },
22
22
  "author": "",
23
23
  "license": "ISC",
24
- "repository": {
25
- "type": "git",
26
- "url": "https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node.git"
27
- },
28
24
  "dependencies": {
29
25
  "axios": "^0.19.2",
30
26
  "camelcase-keys": "^6.2.2",
package/CHANGELOG.md DELETED
@@ -1,320 +0,0 @@
1
- ## [2.0.2-alpha.0](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/compare/v2.0.1...v2.0.2-alpha.0) (2022-02-25)
2
-
3
-
4
- ### Features
5
-
6
- * add pagination ([1722985](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/172298535bd976e0bcd5f857a642bc288d8f46af))
7
-
8
-
9
-
10
- ## [2.0.1](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/compare/v2.0.1-alpha.1...v2.0.1) (2022-01-20)
11
-
12
-
13
-
14
- ## [2.0.1-alpha.1](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/compare/v2.0.1-alpha.0...v2.0.1-alpha.1) (2021-12-21)
15
-
16
-
17
- ### Bug Fixes
18
-
19
- * add kflowCreateProcess ([a434563](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/a4345638b99def28fe65094807c99c80a0c5f4e3))
20
-
21
-
22
-
23
- ## [2.0.1-alpha.0](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/compare/v0.1.25...v2.0.1-alpha.0) (2021-12-20)
24
-
25
-
26
- ### Features
27
-
28
- * flow ([cf5b0f5](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/cf5b0f51069967ce229d770e1d73dad4457f15da))
29
-
30
-
31
-
32
- ## [0.1.25](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/compare/v0.1.24...v0.1.25) (2021-09-28)
33
-
34
-
35
- ### Bug Fixes
36
-
37
- * bugs ([ef7829f](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/ef7829f5fbc5a5578c97534c6b30353b98bd0f35))
38
-
39
-
40
-
41
- ## [0.1.24](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/compare/v0.1.23...v0.1.24) (2021-09-28)
42
-
43
-
44
- ### Bug Fixes
45
-
46
- * bugs ([48e5bd2](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/48e5bd28f20236679be58dac3e38aaeefa2ab2ae))
47
-
48
-
49
- ### Features
50
-
51
- * add procinst user ([1338f92](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/1338f92d8384af4ce152c3150d731ae38c65f2e4))
52
-
53
-
54
-
55
- ## [0.1.23](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/compare/v0.1.22...v0.1.23) (2021-07-14)
56
-
57
-
58
- ### Bug Fixes
59
-
60
- * create role bugs ([817b2d9](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/817b2d98663c51101601a5c8007bb97f592014dc))
61
-
62
-
63
-
64
- ## [0.1.22](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/compare/v0.1.21...v0.1.22) (2021-07-13)
65
-
66
-
67
- ### Bug Fixes
68
-
69
- * bugs ([92eee5d](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/92eee5d3b8d6fcf3d1ddf6d27333c585ecd31ce7))
70
- * role api ([f1c160c](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/f1c160cb858363fd4a1c6e308ece8ef48cab0b47))
71
-
72
-
73
-
74
- ## [0.1.21](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/compare/v0.1.20...v0.1.21) (2021-07-08)
75
-
76
-
77
- ### Bug Fixes
78
-
79
- * kflow api bugs ([0456be6](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/0456be63def42398ff918763cfc2e9a691ae5a89))
80
-
81
-
82
-
83
- ## [0.1.20](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/compare/v0.1.19...v0.1.20) (2021-06-21)
84
-
85
-
86
- ### Bug Fixes
87
-
88
- * add owners ([24a0ccf](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/24a0ccfde9b3edbb5d1c6cd71e6e249091a481ea))
89
- * change coverage ([4528962](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/452896206546823c73985c9e47068ac0ba55c765))
90
-
91
-
92
- ### Features
93
-
94
- * add role uri ([3507999](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/3507999d777d3324883b45cc89c1ec5ab46bb30b))
95
-
96
-
97
-
98
- ## [0.1.19](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/compare/v0.1.18...v0.1.19) (2021-06-10)
99
-
100
-
101
- ### Bug Fixes
102
-
103
- * add updateRolesWithPermissions ([eb0fd33](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/eb0fd33df5e42edfdbc9086c2c147a0a17cd0ff9))
104
-
105
-
106
-
107
- ## [0.1.18](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/compare/v0.1.17...v0.1.18) (2021-03-12)
108
-
109
-
110
- ### Features
111
-
112
- * bind user with status ([993cf4d](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/993cf4d23cdf8e23b424bb6aa397f8d218de6ad6))
113
-
114
-
115
-
116
- ## [0.1.17](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/compare/v0.1.16...v0.1.17) (2021-03-01)
117
-
118
-
119
- ### Features
120
-
121
- * jwt refresh ([61aa920](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/61aa920bb0614b3c9e6b21e47a0bb04853ab8d50))
122
-
123
-
124
-
125
- ## [0.1.16](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/compare/v0.1.15...v0.1.16) (2021-02-09)
126
-
127
-
128
- ### Bug Fixes
129
-
130
- * export PrimaryPrincipal interface ([f2bdb23](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/f2bdb23a2afb3adc3a17edb3b80908ec209cd756))
131
-
132
-
133
-
134
- ## [0.1.15](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/compare/v0.1.14...v0.1.15) (2021-02-04)
135
-
136
-
137
- ### Features
138
-
139
- * add listUsersWithUserAccountsAndRolesByRoleExtendValue and unauthorizedRedirectIgnore ([5086c1a](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/5086c1a0b2976869a1a504eee0984117d33499cb))
140
-
141
-
142
-
143
- ## [0.1.14](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/compare/v0.1.13...v0.1.14) (2021-01-29)
144
-
145
-
146
- ### Bug Fixes
147
-
148
- * types ([1061e6e](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/1061e6eeb99d0f3d3d42390347f8a791eed7550e))
149
-
150
-
151
-
152
- ## [0.1.13](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/compare/v0.1.12...v0.1.13) (2021-01-22)
153
-
154
-
155
- ### Bug Fixes
156
-
157
- * add cache ([14a0d20](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/14a0d206b8056bc249f923904f00a51681f91363))
158
-
159
-
160
-
161
- ## [0.1.12](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/compare/v0.1.11...v0.1.12) (2021-01-21)
162
-
163
-
164
- ### Features
165
-
166
- * permission inject ([561d737](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/561d737ae73fbe03f45812998a406c92625bf9f7))
167
-
168
-
169
-
170
- ## [0.1.11](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/compare/v0.1.10...v0.1.11) (2021-01-21)
171
-
172
-
173
- ### Features
174
-
175
- * createRolesByUsersAndPermissions, listRolesByExtendValue and bindUserByRolesAndExtendValue ([3f0b90f](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/3f0b90f20a1a67d74c5ecab69030ac530eabf51e))
176
-
177
-
178
-
179
- ## [0.1.10](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/compare/v0.1.9...v0.1.10) (2021-01-14)
180
-
181
-
182
- ### Features
183
-
184
- * mock handler ([8c8f4c6](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/8c8f4c6000ebfe7df3916e689c9bb26a69927715))
185
-
186
-
187
-
188
- ## [0.1.9](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/compare/v0.1.8...v0.1.9) (2021-01-08)
189
-
190
-
191
- ### Bug Fixes
192
-
193
- * promisify loginHandler and authHandler ([d758895](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/d758895e946c5cf7e4358d166a5bf4b81125d237))
194
-
195
-
196
-
197
- ## [0.1.8](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/compare/v0.1.7...v0.1.8) (2021-01-08)
198
-
199
-
200
-
201
- ## [0.1.7](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/compare/v0.1.6...v0.1.7) (2020-12-29)
202
-
203
-
204
- ### Bug Fixes
205
-
206
- * replace config.origin by ctx.request.origin ([7ad507d](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/7ad507de86d7ffe77fc610e6d328ec0a3e82abb6))
207
-
208
-
209
-
210
- ## [0.1.6](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/compare/v0.1.5...v0.1.6) (2020-12-24)
211
-
212
-
213
- ### Features
214
-
215
- * members and connections ([f5a1f65](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/f5a1f65a0cb819f29818bb300f5f983ec365c1e4))
216
-
217
-
218
-
219
- ## [0.1.5](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/compare/v0.1.4...v0.1.5) (2020-10-29)
220
-
221
-
222
- ### Bug Fixes
223
-
224
- * prompt config ([2cd40a8](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/2cd40a8b96bc3c8b4adda0ece4df295e9eb1ac5f))
225
-
226
-
227
-
228
- ## [0.1.4](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/compare/v0.1.3...v0.1.4) (2020-10-29)
229
-
230
-
231
- ### Bug Fixes
232
-
233
- * add prompt ([c9316c8](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/c9316c82c87451a05476924eb24ea6f91c5a2fa9))
234
-
235
-
236
-
237
- ## [0.1.3](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/compare/v0.1.2...v0.1.3) (2020-10-29)
238
-
239
-
240
- ### Bug Fixes
241
-
242
- * authenticationInformationHandler params ([6188960](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/61889603dbf4f5f177ff6ca545afaaab155bda4a))
243
-
244
-
245
-
246
- ## [0.1.2](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/compare/v0.1.1...v0.1.2) (2020-10-29)
247
-
248
-
249
- ### Features
250
-
251
- * logout uri and authenticationInformationHandler ([5b972a7](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/5b972a7dad84dd0c93a5b3e6f32f4d396c85035c))
252
-
253
-
254
-
255
- ## [0.1.1](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/compare/v0.1.0...v0.1.1) (2020-09-27)
256
-
257
-
258
- ### Features
259
-
260
- * rbac and connect ([0f75aac](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/0f75aaca8b5f2418d677e6e2583f105b42b970b2))
261
- * reviewer robot ([c379ef4](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/c379ef44b8fa2c21e3739d9eca88339ae4a4254b))
262
-
263
-
264
-
265
- # [0.1.0](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/compare/v0.0.16...v0.1.0) (2020-09-07)
266
-
267
-
268
- ### Features
269
-
270
- * add watch ([7f3bee3](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/7f3bee325d1dcc3e342efff059a77fe5c01db665))
271
- * support miniprogram login ([21452fe](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/21452fe600db1910ee7082fbef7bd7fea3fc992c))
272
- * update git repo ([a043b92](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/a043b92c10f9c37463dd15133659a0652cefe83f))
273
-
274
-
275
-
276
- ## [0.0.17](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/compare/v0.0.16...v0.0.17) (2020-08-27)
277
-
278
-
279
- ### Features
280
-
281
- * add watch ([7f3bee3](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/7f3bee325d1dcc3e342efff059a77fe5c01db665))
282
- * update git repo ([a043b92](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/a043b92c10f9c37463dd15133659a0652cefe83f))
283
-
284
-
285
-
286
- ## 0.0.16 (2020-08-26)
287
-
288
- ### Bug Fixes
289
-
290
- - add avatar ([3afa26f](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/3afa26f669ede87f5e40a39da0e9f45160742cd7))
291
- - add enum and remove public ([de81327](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/de8132788aca556500f2afd2b30b2496a709f3d9))
292
- - add npm version and publish hook ([ee798ba](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/ee798baedc8b6f6c41d5630b199f3f366aabfe46))
293
- - bugs ([232f413](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/232f4137c4d8da15e575615b13b1244f77dcbfe6))
294
- - bugs ([f2d2024](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/f2d2024d93759208f02d820d190003a680597372))
295
- - bugs ([ebb8852](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/ebb88528931334236120275074790a7a3e3a8a1c))
296
- - bugs ([06d4049](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/06d4049aa6754e3557e3593297f1fa8743497a91))
297
- - convert babel env to node 12 ([4b16fed](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/4b16fed53b2df50978f030432dacbae603ff7fa6))
298
- - export mozi auth info and google auth info, fix readme.md ([30392f6](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/30392f6854852651271691a7870c6ee878720290))
299
- - export mozi principal and google principal ([991295f](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/991295fb5fea6d30742fd14d070d21f013ab74c4))
300
- - kflow api indexed ([06cbcbe](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/06cbcbecc0fab5aeccd80d39f698e3670ab15f99))
301
- - marmot utils axios params nullable ([d870314](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/d8703147cfc3d715366ab3d2663e4b21af23c6fe))
302
- - move gulp to tsc ([5618ba7](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/5618ba74fbc7d199846b00f6d599a6efae2787ba))
303
- - mv build to dist ([071c03a](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/071c03ac7c699474a5c957ed4d4cf83ec7ca7d38))
304
- - nyc coverage ([32c7bc0](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/32c7bc01017f9ad79a3309aa3f03262b839d62b3))
305
-
306
- ### Features
307
-
308
- - add marmot api ([e084578](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/e08457805c59e6e3266cacb1502745ef22ca6bf8))
309
- - add OWNERS ([390881d](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/390881d17ef8e7fef95785a56cd25fe6e21b4edd))
310
- - build ([1da5d6d](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/1da5d6d18b07d761bf3306c71388a0a3e223f47b))
311
- - egg middleware ([30278b1](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/30278b16efef8ab4b1c43787994f9ddca6daf8c6))
312
- - initialized ([41fe73d](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/41fe73def8662563e2f7ae29580056e6944c5ab1))
313
- - kflow api support ([bd53d2e](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/bd53d2e954e62afa2f9a2211d4c3c9266093fedd))
314
- - permissions and watch ([d0cd323](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/d0cd323b1e547783db193dc699d8f8ae84114fb5))
315
- - remove egg middleware ([4266f37](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/4266f37309bc02bf7ffe69f472feb45203532bda))
316
- - v0.0.11 ([e0887c6](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/e0887c6a55ab68a85b97a2ac562073fd88e7921a))
317
- - v0.0.12 ([47c6d5d](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/47c6d5de3c04d47aa8e4d1d23bd95323d064c826))
318
- - v0.0.13 ([48518e4](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/48518e42814f11cd73d4199f59aa4069844685c1))
319
- - v0.0.9 ([2f1f32b](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/2f1f32bb7cf508d97ae597a20777b2925a44f653))
320
- - version ([2babee1](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/2babee12614cf682e46a442188463ddbd7d8265e))