@midwayjs/passport 3.14.12 → 3.15.1

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.
@@ -207,6 +207,9 @@ function PassportMiddleware(strategy) {
207
207
  redirect(url) {
208
208
  ctx.redirect(url);
209
209
  },
210
+ setHeader(key, value) {
211
+ ctx.set(key, value);
212
+ },
210
213
  });
211
214
  return;
212
215
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@midwayjs/passport",
3
3
  "description": "midway passport component",
4
- "version": "3.14.12",
4
+ "version": "3.15.1",
5
5
  "main": "dist/index.js",
6
6
  "typings": "index.d.ts",
7
7
  "files": [
@@ -22,17 +22,18 @@
22
22
  "author": "Nawbc",
23
23
  "license": "MIT",
24
24
  "devDependencies": {
25
- "@midwayjs/core": "^3.14.12",
26
- "@midwayjs/express": "^3.14.12",
27
- "@midwayjs/jwt": "^3.14.12",
28
- "@midwayjs/koa": "^3.14.12",
29
- "@midwayjs/mock": "^3.14.12",
30
- "@midwayjs/web": "^3.14.12",
25
+ "@midwayjs/core": "^3.15.0",
26
+ "@midwayjs/express": "^3.15.1",
27
+ "@midwayjs/jwt": "^3.15.1",
28
+ "@midwayjs/koa": "^3.15.1",
29
+ "@midwayjs/mock": "^3.15.0",
30
+ "@midwayjs/web": "^3.15.0",
31
31
  "@types/passport-local": "1.0.38",
32
32
  "express-session": "1.18.0",
33
+ "passport-http-bearer": "1.0.1",
33
34
  "passport-jwt": "4.0.1",
34
35
  "passport-local": "1.0.0",
35
36
  "passport-openidconnect": "0.1.2"
36
37
  },
37
- "gitHead": "e6b0c2d35c4fb8dc05fe17fbc546a09a0b6c0486"
38
+ "gitHead": "a7f834670739a422772a5b43c91ea4dd45803678"
38
39
  }