@loopback/example-passport-login 3.1.2 → 4.0.2
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/CHANGELOG.md +30 -0
- package/LICENSE +2 -2
- package/dist/__tests__/acceptance/passport-login.acceptance.js +1 -1
- package/dist/__tests__/acceptance/passport-login.acceptance.js.map +1 -1
- package/dist/application.d.ts +3 -3
- package/dist/application.js +1 -1
- package/dist/application.js.map +1 -1
- package/dist/authentication-interceptors/facebook.interceptor.d.ts +1 -1
- package/dist/authentication-interceptors/facebook.interceptor.js +1 -1
- package/dist/authentication-interceptors/facebook.interceptor.js.map +1 -1
- package/dist/authentication-interceptors/google.interceptor.d.ts +1 -1
- package/dist/authentication-interceptors/google.interceptor.js +1 -1
- package/dist/authentication-interceptors/google.interceptor.js.map +1 -1
- package/dist/authentication-interceptors/index.js +1 -1
- package/dist/authentication-interceptors/index.js.map +1 -1
- package/dist/authentication-interceptors/oauth2.interceptor.d.ts +1 -1
- package/dist/authentication-interceptors/oauth2.interceptor.js +1 -1
- package/dist/authentication-interceptors/oauth2.interceptor.js.map +1 -1
- package/dist/authentication-interceptors/session.interceptor.d.ts +1 -1
- package/dist/authentication-interceptors/session.interceptor.js +1 -1
- package/dist/authentication-interceptors/session.interceptor.js.map +1 -1
- package/dist/authentication-interceptors/twitter.interceptor.js +1 -1
- package/dist/authentication-interceptors/twitter.interceptor.js.map +1 -1
- package/dist/authentication-interceptors/types.js +1 -1
- package/dist/authentication-interceptors/types.js.map +1 -1
- package/dist/authentication-strategies/basic.js +1 -1
- package/dist/authentication-strategies/basic.js.map +1 -1
- package/dist/authentication-strategies/facebook.js +1 -1
- package/dist/authentication-strategies/facebook.js.map +1 -1
- package/dist/authentication-strategies/google.js +1 -1
- package/dist/authentication-strategies/google.js.map +1 -1
- package/dist/authentication-strategies/index.js +1 -1
- package/dist/authentication-strategies/index.js.map +1 -1
- package/dist/authentication-strategies/local.js +1 -1
- package/dist/authentication-strategies/local.js.map +1 -1
- package/dist/authentication-strategies/oauth2.js +1 -1
- package/dist/authentication-strategies/oauth2.js.map +1 -1
- package/dist/authentication-strategies/session.js +1 -1
- package/dist/authentication-strategies/session.js.map +1 -1
- package/dist/authentication-strategies/twitter.js +1 -1
- package/dist/authentication-strategies/twitter.js.map +1 -1
- package/dist/authentication-strategies/types.d.ts +2 -2
- package/dist/authentication-strategies/types.js +2 -2
- package/dist/authentication-strategies/types.js.map +1 -1
- package/dist/authentication-strategy-providers/facebook.express-mw.js +1 -1
- package/dist/authentication-strategy-providers/facebook.express-mw.js.map +1 -1
- package/dist/authentication-strategy-providers/facebook.js +1 -1
- package/dist/authentication-strategy-providers/facebook.js.map +1 -1
- package/dist/authentication-strategy-providers/google.express-mw.js +1 -1
- package/dist/authentication-strategy-providers/google.express-mw.js.map +1 -1
- package/dist/authentication-strategy-providers/google.js +1 -1
- package/dist/authentication-strategy-providers/google.js.map +1 -1
- package/dist/authentication-strategy-providers/index.js +1 -1
- package/dist/authentication-strategy-providers/index.js.map +1 -1
- package/dist/authentication-strategy-providers/oauth2.express-mw.js +1 -1
- package/dist/authentication-strategy-providers/oauth2.express-mw.js.map +1 -1
- package/dist/authentication-strategy-providers/oauth2.js +1 -1
- package/dist/authentication-strategy-providers/oauth2.js.map +1 -1
- package/dist/authentication-strategy-providers/twitter.express-mw.js +1 -1
- package/dist/authentication-strategy-providers/twitter.express-mw.js.map +1 -1
- package/dist/authentication-strategy-providers/twitter.js +1 -1
- package/dist/authentication-strategy-providers/twitter.js.map +1 -1
- package/dist/controllers/index.d.ts +1 -1
- package/dist/controllers/index.js +2 -2
- package/dist/controllers/index.js.map +1 -1
- package/dist/controllers/oauth2.controller.d.ts +1 -1
- package/dist/controllers/oauth2.controller.js +2 -2
- package/dist/controllers/oauth2.controller.js.map +1 -1
- package/dist/controllers/ping.controller.js +3 -3
- package/dist/controllers/ping.controller.js.map +1 -1
- package/dist/controllers/user.controller.js +1 -1
- package/dist/controllers/user.controller.js.map +1 -1
- package/dist/datasources/db.datasource.js +1 -1
- package/dist/datasources/db.datasource.js.map +1 -1
- package/dist/datasources/index.js +1 -1
- package/dist/datasources/index.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/model-endpoints/index.js +1 -1
- package/dist/model-endpoints/index.js.map +1 -1
- package/dist/model-endpoints/user.rest-config.js +1 -1
- package/dist/model-endpoints/user.rest-config.js.map +1 -1
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +2 -2
- package/dist/models/index.js.map +1 -1
- package/dist/models/user-credentials.model.js +1 -1
- package/dist/models/user-credentials.model.js.map +1 -1
- package/dist/models/user-identity.model.js +1 -1
- package/dist/models/user-identity.model.js.map +1 -1
- package/dist/models/user.model.js +1 -1
- package/dist/models/user.model.js.map +1 -1
- package/dist/observers/index.js +1 -1
- package/dist/observers/index.js.map +1 -1
- package/dist/observers/wire.observer.js +1 -1
- package/dist/observers/wire.observer.js.map +1 -1
- package/dist/repositories/index.js +1 -1
- package/dist/repositories/index.js.map +1 -1
- package/dist/repositories/user-credentials.repository.d.ts +1 -1
- package/dist/repositories/user-credentials.repository.js +3 -3
- package/dist/repositories/user-credentials.repository.js.map +1 -1
- package/dist/repositories/user-identity.repository.d.ts +1 -1
- package/dist/repositories/user-identity.repository.js +3 -3
- package/dist/repositories/user-identity.repository.js.map +1 -1
- package/dist/repositories/user.repository.d.ts +2 -2
- package/dist/repositories/user.repository.js +1 -1
- package/dist/repositories/user.repository.js.map +1 -1
- package/dist/sequence.js +1 -1
- package/dist/sequence.js.map +1 -1
- package/dist/server.js +1 -1
- package/dist/server.js.map +1 -1
- package/dist/services/index.d.ts +1 -1
- package/dist/services/index.js +2 -2
- package/dist/services/index.js.map +1 -1
- package/dist/services/keys.d.ts +1 -1
- package/dist/services/keys.js +1 -1
- package/dist/services/keys.js.map +1 -1
- package/dist/services/user.service.js +1 -1
- package/dist/services/user.service.js.map +1 -1
- package/dist/wiring.js +1 -1
- package/dist/wiring.js.map +1 -1
- package/package.json +33 -33
- package/src/__tests__/acceptance/passport-login.acceptance.ts +1 -1
- package/src/application.ts +1 -1
- package/src/authentication-interceptors/facebook.interceptor.ts +4 -4
- package/src/authentication-interceptors/google.interceptor.ts +4 -4
- package/src/authentication-interceptors/index.ts +1 -1
- package/src/authentication-interceptors/oauth2.interceptor.ts +5 -5
- package/src/authentication-interceptors/session.interceptor.ts +3 -3
- package/src/authentication-interceptors/twitter.interceptor.ts +1 -1
- package/src/authentication-interceptors/types.ts +1 -1
- package/src/authentication-strategies/basic.ts +1 -1
- package/src/authentication-strategies/facebook.ts +1 -1
- package/src/authentication-strategies/google.ts +1 -1
- package/src/authentication-strategies/index.ts +1 -1
- package/src/authentication-strategies/local.ts +1 -1
- package/src/authentication-strategies/oauth2.ts +1 -1
- package/src/authentication-strategies/session.ts +1 -1
- package/src/authentication-strategies/twitter.ts +1 -1
- package/src/authentication-strategies/types.ts +3 -3
- package/src/authentication-strategy-providers/facebook.express-mw.ts +1 -1
- package/src/authentication-strategy-providers/facebook.ts +1 -1
- package/src/authentication-strategy-providers/google.express-mw.ts +1 -1
- package/src/authentication-strategy-providers/google.ts +1 -1
- package/src/authentication-strategy-providers/index.ts +1 -1
- package/src/authentication-strategy-providers/oauth2.express-mw.ts +1 -1
- package/src/authentication-strategy-providers/oauth2.ts +1 -1
- package/src/authentication-strategy-providers/twitter.express-mw.ts +1 -1
- package/src/authentication-strategy-providers/twitter.ts +1 -1
- package/src/controllers/index.ts +2 -2
- package/src/controllers/oauth2.controller.ts +6 -6
- package/src/controllers/ping.controller.ts +5 -5
- package/src/controllers/user.controller.ts +1 -1
- package/src/datasources/db.datasource.ts +1 -1
- package/src/datasources/index.ts +1 -1
- package/src/index.ts +1 -1
- package/src/model-endpoints/index.ts +1 -1
- package/src/model-endpoints/user.rest-config.ts +1 -1
- package/src/models/index.ts +2 -2
- package/src/models/user-credentials.model.ts +1 -1
- package/src/models/user-identity.model.ts +2 -2
- package/src/models/user.model.ts +2 -2
- package/src/observers/index.ts +1 -1
- package/src/observers/wire.observer.ts +1 -1
- package/src/repositories/index.ts +1 -1
- package/src/repositories/user-credentials.repository.ts +3 -3
- package/src/repositories/user-identity.repository.ts +3 -3
- package/src/repositories/user.repository.ts +5 -5
- package/src/sequence.ts +1 -1
- package/src/server.ts +1 -1
- package/src/services/index.ts +2 -2
- package/src/services/keys.ts +2 -2
- package/src/services/user.service.ts +1 -1
- package/src/wiring.ts +1 -1
- package/web-application/express-app.js +1 -1
package/dist/wiring.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wiring.js","sourceRoot":"","sources":["../src/wiring.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"wiring.js","sourceRoot":"","sources":["../src/wiring.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,gDAAgD;AAChD,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAKwB;AACxB,yCAAoE;AACpE,gEAAgC;AAChC,+EAMuC;AACvC,2EAQqC;AACrC,2FAS6C;AAC7C,yCAA4E;AAE5E,SAAgB,aAAa,CAAC,GAAgB;IAC5C,8DAA8D;IAC9D,kBAAQ,CAAC,aAAa,CAAC,UAAU,IAAS,EAAE,IAAI;QAC9C,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACnB,CAAC,CAAC,CAAC;IACH,8DAA8D;IAC9D,kBAAQ,CAAC,eAAe,CAAC,UAAU,IAAS,EAAE,IAAI;QAChD,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACnB,CAAC,CAAC,CAAC;IACH,GAAG;SACA,IAAI,CAAC,8BAAmB,CAAC,8BAA8B,CAAC;SACxD,OAAO,CAAC,sCAA2B,CAAC,CAAC;IAExC,sBAAsB;IACtB,MAAM,kBAAkB,GAAyC;QAC/D,gBAAgB,EAAE,iDAAa;QAC/B,cAAc,EAAE,+CAAW;QAC3B,eAAe,EAAE,gDAAY;QAC7B,cAAc,EAAE,gDAAY;KAC7B,CAAC;IACF,KAAK,MAAM,GAAG,IAAI,kBAAkB,EAAE;QACpC,GAAG,CAAC,GAAG,CAAC,IAAA,6BAAsB,EAAC,kBAAkB,CAAC,GAAG,CAAC,EAAE,EAAC,GAAG,EAAC,CAAC,CAAC,CAAC;KACjE;IAED,8BAA8B;IAC9B,MAAM,aAAa,GAGf;QACF,0BAA0B,EAAE,mEAA+B;QAC3D,wBAAwB,EAAE,iEAA6B;QACvD,yBAAyB,EAAE,iEAA6B;QACxD,wBAAwB,EAAE,iEAA6B;KACxD,CAAC;IACF,KAAK,MAAM,GAAG,IAAI,aAAa,EAAE;QAC/B,GAAG,CAAC,GAAG,CAAC,IAAA,6BAAsB,EAAC,aAAa,CAAC,GAAG,CAAC,EAAE,EAAC,GAAG,EAAC,CAAC,CAAC,CAAC;KAC5D;IAED,6CAA6C;IAC7C,MAAM,UAAU,GAA2B;QACzC,6CAAiB;QACjB,wDAA4B;QAC5B,sDAA0B;QAC1B,sDAA0B;QAC1B,8CAAkB;QAClB,2CAAe;QACf,yCAAa;KACd,CAAC;IACF,KAAK,MAAM,CAAC,IAAI,UAAU,EAAE;QAC1B,GAAG,CAAC,GAAG,CAAC,IAAA,6BAAsB,EAAC,CAAC,CAAC,CAAC,CAAC;KACpC;IAED,wCAAwC;IACxC,GAAG,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAA,oBAAa,EAAC,kBAAQ,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IACtE,GAAG,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,EAAE,CAAC,IAAA,oBAAa,EAAC,kBAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IACtE,GAAG,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,UAAU,CAAC,sDAAwB,CAAC,CAAC;IACnE,GAAG,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,UAAU,CAAC,oDAAsB,CAAC,CAAC;IAC/D,GAAG,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,UAAU,CAAC,qDAAuB,CAAC,CAAC;IACjE,GAAG,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,UAAU,CAAC,qDAAuB,CAAC,CAAC;IAChE,GAAG,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,UAAU,CAAC,yCAAW,CAAC,CAAC;AACvD,CAAC;AA5DD,sCA4DC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loopback/example-passport-login",
|
|
3
3
|
"description": "An example to demonstrate authentication with passport strategies",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "4.0.2",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"loopback",
|
|
7
7
|
"LoopBack",
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "dist/index.js",
|
|
15
15
|
"types": "dist/index.d.ts",
|
|
16
|
-
"author": "IBM Corp.",
|
|
17
|
-
"copyright.owner": "IBM Corp.",
|
|
16
|
+
"author": "IBM Corp. and LoopBack contributors",
|
|
17
|
+
"copyright.owner": "IBM Corp. and LoopBack contributors",
|
|
18
18
|
"repository": {
|
|
19
19
|
"type": "git",
|
|
20
20
|
"url": "https://github.com/loopbackio/loopback-next.git",
|
|
21
21
|
"directory": "examples/passport-login"
|
|
22
22
|
},
|
|
23
23
|
"engines": {
|
|
24
|
-
"node": "
|
|
24
|
+
"node": "14 || 16 || 17 || 18"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "lb-tsc",
|
|
@@ -47,35 +47,35 @@
|
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@loopback/authentication": "^
|
|
51
|
-
"@loopback/authentication-passport": "^
|
|
52
|
-
"@loopback/boot": "^
|
|
53
|
-
"@loopback/core": "^
|
|
54
|
-
"@loopback/mock-oauth2-provider": "^0.
|
|
55
|
-
"@loopback/repository": "^
|
|
56
|
-
"@loopback/rest": "^
|
|
57
|
-
"@loopback/rest-crud": "^0.
|
|
58
|
-
"@loopback/rest-explorer": "^
|
|
59
|
-
"@loopback/security": "^0.
|
|
60
|
-
"@loopback/service-proxy": "^
|
|
50
|
+
"@loopback/authentication": "^9.0.2",
|
|
51
|
+
"@loopback/authentication-passport": "^5.0.2",
|
|
52
|
+
"@loopback/boot": "^5.0.2",
|
|
53
|
+
"@loopback/core": "^4.0.2",
|
|
54
|
+
"@loopback/mock-oauth2-provider": "^0.6.2",
|
|
55
|
+
"@loopback/repository": "^5.0.2",
|
|
56
|
+
"@loopback/rest": "^12.0.2",
|
|
57
|
+
"@loopback/rest-crud": "^0.15.1",
|
|
58
|
+
"@loopback/rest-explorer": "^5.0.2",
|
|
59
|
+
"@loopback/security": "^0.8.2",
|
|
60
|
+
"@loopback/service-proxy": "^5.0.2",
|
|
61
61
|
"@types/jsonwebtoken": "8.5.8",
|
|
62
|
-
"@types/lodash": "^4.14.
|
|
63
|
-
"@types/passport": "^1.0.
|
|
62
|
+
"@types/lodash": "^4.14.182",
|
|
63
|
+
"@types/passport": "^1.0.9",
|
|
64
64
|
"@types/passport-facebook": "^2.1.11",
|
|
65
65
|
"@types/passport-google-oauth": "^1.0.42",
|
|
66
|
-
"@types/passport-google-oauth2": "^0.1.
|
|
66
|
+
"@types/passport-google-oauth2": "^0.1.5",
|
|
67
67
|
"@types/passport-http": "^0.3.9",
|
|
68
68
|
"@types/passport-local": "^1.0.34",
|
|
69
69
|
"@types/passport-oauth2": "^1.4.11",
|
|
70
70
|
"@types/passport-twitter": "1.0.37",
|
|
71
|
-
"body-parser": "^1.
|
|
71
|
+
"body-parser": "^1.20.0",
|
|
72
72
|
"client-sessions": "^0.8.0",
|
|
73
73
|
"debug": "^4.3.4",
|
|
74
|
-
"express": "^4.
|
|
75
|
-
"express-session": "^1.17.
|
|
74
|
+
"express": "^4.18.1",
|
|
75
|
+
"express-session": "^1.17.3",
|
|
76
76
|
"jade": "^1.11.0",
|
|
77
77
|
"lodash": "^4.17.21",
|
|
78
|
-
"passport": "^0.5.
|
|
78
|
+
"passport": "^0.5.3",
|
|
79
79
|
"passport-facebook": "^3.0.0",
|
|
80
80
|
"passport-google": "^0.3.0",
|
|
81
81
|
"passport-google-oauth2": "^0.2.0",
|
|
@@ -84,20 +84,20 @@
|
|
|
84
84
|
"passport-oauth2": "^1.6.1",
|
|
85
85
|
"passport-twitter": "1.0.4",
|
|
86
86
|
"path": "^0.12.7",
|
|
87
|
-
"tslib": "^2.
|
|
87
|
+
"tslib": "^2.4.0"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
|
-
"@loopback/build": "^
|
|
91
|
-
"@loopback/eslint-config": "^
|
|
92
|
-
"@loopback/http-caching-proxy": "^
|
|
93
|
-
"@loopback/testlab": "^
|
|
90
|
+
"@loopback/build": "^9.0.2",
|
|
91
|
+
"@loopback/eslint-config": "^13.0.2",
|
|
92
|
+
"@loopback/http-caching-proxy": "^4.0.2",
|
|
93
|
+
"@loopback/testlab": "^5.0.2",
|
|
94
94
|
"@types/express": "^4.17.13",
|
|
95
|
-
"@types/lodash": "^4.14.
|
|
96
|
-
"@types/node": "^
|
|
97
|
-
"axios": "^0.
|
|
98
|
-
"eslint": "^8.
|
|
95
|
+
"@types/lodash": "^4.14.182",
|
|
96
|
+
"@types/node": "^14.18.21",
|
|
97
|
+
"axios": "^0.27.2",
|
|
98
|
+
"eslint": "^8.19.0",
|
|
99
99
|
"lodash": "^4.17.21",
|
|
100
|
-
"typescript": "~4.
|
|
100
|
+
"typescript": "~4.7.4"
|
|
101
101
|
},
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "d2eddfc1319810f4c0126e613c24499b5685f7e4"
|
|
103
103
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/application.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
5
5
|
|
|
6
6
|
import {
|
|
7
7
|
inject,
|
|
8
|
-
Provider,
|
|
9
8
|
Interceptor,
|
|
10
9
|
InvocationContext,
|
|
11
10
|
Next,
|
|
11
|
+
Provider,
|
|
12
12
|
} from '@loopback/core';
|
|
13
13
|
import {
|
|
14
|
-
|
|
14
|
+
ExpressRequestHandler,
|
|
15
15
|
RequestContext,
|
|
16
|
+
RestBindings,
|
|
16
17
|
toInterceptor,
|
|
17
|
-
ExpressRequestHandler,
|
|
18
18
|
} from '@loopback/rest';
|
|
19
19
|
|
|
20
20
|
export class FacebookOauthInterceptor implements Provider<Interceptor> {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
5
5
|
|
|
6
6
|
import {
|
|
7
7
|
inject,
|
|
8
|
-
Provider,
|
|
9
8
|
Interceptor,
|
|
10
9
|
InvocationContext,
|
|
11
10
|
Next,
|
|
11
|
+
Provider,
|
|
12
12
|
} from '@loopback/core';
|
|
13
13
|
import {
|
|
14
|
-
|
|
14
|
+
ExpressRequestHandler,
|
|
15
15
|
RequestContext,
|
|
16
|
+
RestBindings,
|
|
16
17
|
toInterceptor,
|
|
17
|
-
ExpressRequestHandler,
|
|
18
18
|
} from '@loopback/rest';
|
|
19
19
|
|
|
20
20
|
export class GoogleOauthInterceptor implements Provider<Interceptor> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
5
5
|
|
|
6
6
|
import {
|
|
7
7
|
inject,
|
|
8
|
-
|
|
8
|
+
Interceptor,
|
|
9
9
|
InvocationContext,
|
|
10
10
|
Next,
|
|
11
|
-
|
|
11
|
+
Provider,
|
|
12
12
|
} from '@loopback/core';
|
|
13
13
|
import {
|
|
14
|
-
|
|
14
|
+
ExpressRequestHandler,
|
|
15
15
|
RequestContext,
|
|
16
|
+
RestBindings,
|
|
16
17
|
toInterceptor,
|
|
17
|
-
ExpressRequestHandler,
|
|
18
18
|
} from '@loopback/rest';
|
|
19
19
|
|
|
20
20
|
export class CustomOauth2Interceptor implements Provider<Interceptor> {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import {Interceptor, InvocationContext, Next, Provider} from '@loopback/core';
|
|
7
|
+
import {RequestContext, RestBindings} from '@loopback/rest';
|
|
8
8
|
import {SecurityBindings} from '@loopback/security';
|
|
9
9
|
import {mapProfile} from '../authentication-strategies/types';
|
|
10
10
|
import {User} from '../models';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
5
5
|
|
|
6
|
+
import {UserIdentityService} from '@loopback/authentication';
|
|
7
|
+
import {securityId, UserProfile} from '@loopback/security';
|
|
6
8
|
import axios from 'axios';
|
|
7
9
|
import {Profile} from 'passport';
|
|
8
|
-
import {UserIdentityService} from '@loopback/authentication';
|
|
9
10
|
import {User} from '../models';
|
|
10
|
-
import {UserProfile, securityId} from '@loopback/security';
|
|
11
11
|
|
|
12
12
|
export type ProfileFunction = (
|
|
13
13
|
accessToken: string,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/controllers/index.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
5
5
|
|
|
6
6
|
export * from './oauth2.controller';
|
|
7
|
-
export * from './user.controller';
|
|
8
7
|
export * from './ping.controller';
|
|
8
|
+
export * from './user.controller';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
5
5
|
|
|
6
|
+
import {authenticate, AuthenticationBindings} from '@loopback/authentication';
|
|
7
|
+
import {inject} from '@loopback/core';
|
|
6
8
|
import {
|
|
7
9
|
get,
|
|
8
|
-
RestBindings,
|
|
9
|
-
Response,
|
|
10
|
-
RequestWithSession,
|
|
11
10
|
param,
|
|
11
|
+
RequestWithSession,
|
|
12
|
+
Response,
|
|
13
|
+
RestBindings,
|
|
12
14
|
} from '@loopback/rest';
|
|
13
|
-
import {authenticate, AuthenticationBindings} from '@loopback/authentication';
|
|
14
|
-
import {inject} from '@loopback/core';
|
|
15
15
|
import {SecurityBindings, UserProfile} from '@loopback/security';
|
|
16
16
|
import {oAuth2InterceptExpressMiddleware} from '../authentication-interceptors/types';
|
|
17
17
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
5
5
|
|
|
6
|
+
import {authenticate} from '@loopback/authentication';
|
|
7
|
+
import {inject} from '@loopback/core';
|
|
6
8
|
import {
|
|
7
|
-
Request,
|
|
8
|
-
RestBindings,
|
|
9
9
|
get,
|
|
10
|
+
Request,
|
|
10
11
|
RequestBodyObject,
|
|
12
|
+
RestBindings,
|
|
11
13
|
SchemaObject,
|
|
12
14
|
} from '@loopback/rest';
|
|
13
|
-
import {inject} from '@loopback/core';
|
|
14
|
-
import {authenticate} from '@loopback/authentication';
|
|
15
15
|
import {SecurityBindings, UserProfile} from '@loopback/security';
|
|
16
16
|
|
|
17
17
|
const HEADER_SCHEMA: SchemaObject = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/datasources/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/models/index.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
5
5
|
|
|
6
|
-
export * from './user.model';
|
|
7
6
|
export * from './user-credentials.model';
|
|
8
7
|
export * from './user-identity.model';
|
|
8
|
+
export * from './user.model';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
5
5
|
|
|
6
|
-
import {Entity, model, property
|
|
6
|
+
import {belongsTo, Entity, model, property} from '@loopback/repository';
|
|
7
7
|
import {User} from './user.model';
|
|
8
8
|
|
|
9
9
|
@model()
|
package/src/models/user.model.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
5
5
|
|
|
6
|
-
import {Entity,
|
|
6
|
+
import {Entity, hasMany, hasOne, model, property} from '@loopback/repository';
|
|
7
7
|
import {UserCredentials} from './user-credentials.model';
|
|
8
8
|
import {UserIdentity} from './user-identity.model';
|
|
9
9
|
|
package/src/observers/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
5
5
|
|
|
6
|
+
import {inject} from '@loopback/core';
|
|
6
7
|
import {DefaultCrudRepository} from '@loopback/repository';
|
|
7
|
-
import {UserCredentials} from '../models';
|
|
8
8
|
import {DbDataSource} from '../datasources';
|
|
9
|
-
import {
|
|
9
|
+
import {UserCredentials} from '../models';
|
|
10
10
|
|
|
11
11
|
export class UserCredentialsRepository extends DefaultCrudRepository<
|
|
12
12
|
UserCredentials,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-passport-login
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
5
5
|
|
|
6
|
+
import {inject} from '@loopback/core';
|
|
6
7
|
import {DefaultCrudRepository} from '@loopback/repository';
|
|
7
|
-
import {UserIdentity} from '../models';
|
|
8
8
|
import {DbDataSource} from '../datasources';
|
|
9
|
-
import {
|
|
9
|
+
import {UserIdentity} from '../models';
|
|
10
10
|
|
|
11
11
|
export class UserIdentityRepository extends DefaultCrudRepository<
|
|
12
12
|
UserIdentity,
|