@loopback/example-passport-login 3.1.1 → 4.0.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.
- package/CHANGELOG.md +30 -0
- package/LICENSE +2 -2
- package/dist/__tests__/acceptance/passport-login.acceptance.js +4 -4
- 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 +4 -4
- 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 +4 -4
- package/dist/authentication-interceptors/google.interceptor.js.map +1 -1
- package/dist/authentication-interceptors/index.js +7 -7
- 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 +4 -4
- 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 +4 -4
- 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 +4 -4
- package/dist/authentication-strategies/basic.js.map +1 -1
- package/dist/authentication-strategies/facebook.js +4 -4
- package/dist/authentication-strategies/facebook.js.map +1 -1
- package/dist/authentication-strategies/google.js +4 -4
- package/dist/authentication-strategies/google.js.map +1 -1
- package/dist/authentication-strategies/index.js +9 -9
- package/dist/authentication-strategies/index.js.map +1 -1
- package/dist/authentication-strategies/local.js +4 -4
- package/dist/authentication-strategies/local.js.map +1 -1
- package/dist/authentication-strategies/oauth2.js +5 -5
- package/dist/authentication-strategies/oauth2.js.map +1 -1
- package/dist/authentication-strategies/session.js +4 -4
- package/dist/authentication-strategies/session.js.map +1 -1
- package/dist/authentication-strategies/twitter.js +4 -4
- 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 +4 -4
- package/dist/authentication-strategy-providers/facebook.express-mw.js.map +1 -1
- package/dist/authentication-strategy-providers/facebook.js +5 -5
- package/dist/authentication-strategy-providers/facebook.js.map +1 -1
- package/dist/authentication-strategy-providers/google.express-mw.js +4 -4
- package/dist/authentication-strategy-providers/google.express-mw.js.map +1 -1
- package/dist/authentication-strategy-providers/google.js +5 -5
- package/dist/authentication-strategy-providers/google.js.map +1 -1
- package/dist/authentication-strategy-providers/index.js +9 -9
- package/dist/authentication-strategy-providers/index.js.map +1 -1
- package/dist/authentication-strategy-providers/oauth2.express-mw.js +4 -4
- package/dist/authentication-strategy-providers/oauth2.express-mw.js.map +1 -1
- package/dist/authentication-strategy-providers/oauth2.js +6 -6
- package/dist/authentication-strategy-providers/oauth2.js.map +1 -1
- package/dist/authentication-strategy-providers/twitter.express-mw.js +4 -4
- package/dist/authentication-strategy-providers/twitter.express-mw.js.map +1 -1
- package/dist/authentication-strategy-providers/twitter.js +5 -5
- package/dist/authentication-strategy-providers/twitter.js.map +1 -1
- package/dist/controllers/index.d.ts +1 -1
- package/dist/controllers/index.js +4 -4
- package/dist/controllers/index.js.map +1 -1
- package/dist/controllers/oauth2.controller.d.ts +1 -1
- package/dist/controllers/oauth2.controller.js +18 -18
- package/dist/controllers/oauth2.controller.js.map +1 -1
- package/dist/controllers/ping.controller.js +15 -15
- package/dist/controllers/ping.controller.js.map +1 -1
- package/dist/controllers/user.controller.js +29 -29
- package/dist/controllers/user.controller.js.map +1 -1
- package/dist/datasources/db.datasource.js +4 -4
- package/dist/datasources/db.datasource.js.map +1 -1
- package/dist/datasources/index.js +2 -2
- package/dist/datasources/index.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/model-endpoints/index.js +2 -2
- 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 +4 -4
- package/dist/models/index.js.map +1 -1
- package/dist/models/user-credentials.model.js +9 -9
- package/dist/models/user-credentials.model.js.map +1 -1
- package/dist/models/user-identity.model.js +17 -17
- package/dist/models/user-identity.model.js.map +1 -1
- package/dist/models/user.model.js +21 -21
- package/dist/models/user.model.js.map +1 -1
- package/dist/observers/index.js +2 -2
- package/dist/observers/index.js.map +1 -1
- package/dist/observers/wire.observer.js +4 -4
- package/dist/observers/wire.observer.js.map +1 -1
- package/dist/repositories/index.js +2 -2
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- package/dist/repositories/user.repository.js.map +1 -1
- package/dist/sequence.js +11 -11
- package/dist/sequence.js.map +1 -1
- package/dist/server.js +3 -3
- package/dist/server.js.map +1 -1
- package/dist/services/index.d.ts +1 -1
- package/dist/services/index.js +3 -3
- 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 +5 -5
- package/dist/services/user.service.js.map +1 -1
- package/dist/wiring.js +2 -2
- package/dist/wiring.js.map +1 -1
- package/package.json +34 -34
- 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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-passport-login
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -89,57 +89,57 @@ let UserLoginController = class UserLoginController {
|
|
|
89
89
|
return user.profiles;
|
|
90
90
|
}
|
|
91
91
|
};
|
|
92
|
-
|
|
92
|
+
tslib_1.__decorate([
|
|
93
93
|
(0, rest_1.post)('/signup'),
|
|
94
|
-
|
|
94
|
+
tslib_1.__param(0, (0, rest_1.requestBody)({
|
|
95
95
|
description: 'signup user locally',
|
|
96
96
|
required: true,
|
|
97
97
|
content: {
|
|
98
98
|
'application/x-www-form-urlencoded': { schema: CredentialsSchema },
|
|
99
99
|
},
|
|
100
100
|
})),
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
101
|
+
tslib_1.__param(1, (0, core_1.inject)(rest_1.RestBindings.Http.RESPONSE)),
|
|
102
|
+
tslib_1.__metadata("design:type", Function),
|
|
103
|
+
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
104
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
105
105
|
], UserLoginController.prototype, "signup", null);
|
|
106
|
-
|
|
106
|
+
tslib_1.__decorate([
|
|
107
107
|
(0, authentication_1.authenticate)('local'),
|
|
108
108
|
(0, rest_1.post)('/login'),
|
|
109
|
-
|
|
109
|
+
tslib_1.__param(0, (0, rest_1.requestBody)({
|
|
110
110
|
description: 'login to create a user session',
|
|
111
111
|
required: true,
|
|
112
112
|
content: {
|
|
113
113
|
'application/x-www-form-urlencoded': { schema: CredentialsSchema },
|
|
114
114
|
},
|
|
115
115
|
})),
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
116
|
+
tslib_1.__param(1, (0, core_1.inject)(security_1.SecurityBindings.USER)),
|
|
117
|
+
tslib_1.__param(2, (0, core_1.inject)(rest_1.RestBindings.Http.REQUEST)),
|
|
118
|
+
tslib_1.__param(3, (0, core_1.inject)(rest_1.RestBindings.Http.RESPONSE)),
|
|
119
|
+
tslib_1.__metadata("design:type", Function),
|
|
120
|
+
tslib_1.__metadata("design:paramtypes", [Object, Object, Object, Object]),
|
|
121
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
122
122
|
], UserLoginController.prototype, "login", null);
|
|
123
|
-
|
|
123
|
+
tslib_1.__decorate([
|
|
124
124
|
(0, authentication_1.authenticate)('basic'),
|
|
125
125
|
(0, rest_1.del)('/clear'),
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
tslib_1.__metadata("design:type", Function),
|
|
127
|
+
tslib_1.__metadata("design:paramtypes", []),
|
|
128
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
129
129
|
], UserLoginController.prototype, "clear", null);
|
|
130
|
-
|
|
130
|
+
tslib_1.__decorate([
|
|
131
131
|
(0, authentication_1.authenticate)('basic'),
|
|
132
132
|
(0, rest_1.get)('/profiles'),
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
133
|
+
tslib_1.__param(0, (0, core_1.inject)(security_1.SecurityBindings.USER)),
|
|
134
|
+
tslib_1.__metadata("design:type", Function),
|
|
135
|
+
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
136
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
137
137
|
], UserLoginController.prototype, "getExternalProfiles", null);
|
|
138
|
-
UserLoginController =
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
138
|
+
UserLoginController = tslib_1.__decorate([
|
|
139
|
+
tslib_1.__param(0, (0, repository_1.repository)(repositories_1.UserRepository)),
|
|
140
|
+
tslib_1.__param(1, (0, repository_1.repository)(user_credentials_repository_1.UserCredentialsRepository)),
|
|
141
|
+
tslib_1.__param(2, (0, repository_1.repository)(user_identity_repository_1.UserIdentityRepository)),
|
|
142
|
+
tslib_1.__metadata("design:paramtypes", [repositories_1.UserRepository,
|
|
143
143
|
user_credentials_repository_1.UserCredentialsRepository,
|
|
144
144
|
user_identity_repository_1.UserIdentityRepository])
|
|
145
145
|
], UserLoginController);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.controller.js","sourceRoot":"","sources":["../../src/controllers/user.controller.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"user.controller.js","sourceRoot":"","sources":["../../src/controllers/user.controller.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,gDAAgD;AAChD,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,6DAAsD;AACtD,yCAAsC;AACtC,qDAAgD;AAChD,yCASwB;AACxB,iDAA6E;AAC7E,kDAA+C;AAC/C,6FAAsF;AACtF,uFAAgF;AAQhF,MAAM,iBAAiB,GAAiB;IACtC,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC;IAC/B,UAAU,EAAE;QACV,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,OAAO;SAChB;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,CAAC;SACb;KACF;CACF,CAAC;AAEF,IAAa,mBAAmB,GAAhC,MA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IAED,mBAAA,IAAA,aAAM,EAAC,2BAAgB,CAAC,IAAI,CAAC,CAAA;IAC7B,mBAAA,IAAA,aAAM,EAAC,mBAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IACjC,mBAAA,IAAA,aAAM,EAAC,mBAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;;;;gDAQpC;AAOD;IAFC,IAAA,6BAAY,EAAC,OAAO,CAAC;IACrB,IAAA,UAAG,EAAC,QAAQ,CAAC;;;;gDAKb;AAID;IAFC,IAAA,6BAAY,EAAC,OAAO,CAAC;IACrB,IAAA,UAAG,EAAC,WAAW,CAAC;IAEd,mBAAA,IAAA,aAAM,EAAC,2BAAgB,CAAC,IAAI,CAAC,CAAA;;;;8DAS/B;AAvGU,mBAAmB;IAE3B,mBAAA,IAAA,uBAAU,EAAC,6BAAc,CAAC,CAAA;IAE1B,mBAAA,IAAA,uBAAU,EAAC,uDAAyB,CAAC,CAAA;IAErC,mBAAA,IAAA,uBAAU,EAAC,iDAAsB,CAAC,CAAA;6CAHZ,6BAAc;QAEH,uDAAyB;QAE5B,iDAAsB;GAP5C,mBAAmB,CAwG/B;AAxGY,kDAAmB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-passport-login
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -21,9 +21,9 @@ let DbDataSource = class DbDataSource extends repository_1.juggler.DataSource {
|
|
|
21
21
|
};
|
|
22
22
|
DbDataSource.dataSourceName = 'db';
|
|
23
23
|
DbDataSource.defaultConfig = config;
|
|
24
|
-
DbDataSource =
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
DbDataSource = tslib_1.__decorate([
|
|
25
|
+
tslib_1.__param(0, (0, core_1.inject)('datasources.config.db', { optional: true })),
|
|
26
|
+
tslib_1.__metadata("design:paramtypes", [Object])
|
|
27
27
|
], DbDataSource);
|
|
28
28
|
exports.DbDataSource = DbDataSource;
|
|
29
29
|
//# sourceMappingURL=db.datasource.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"db.datasource.js","sourceRoot":"","sources":["../../src/datasources/db.datasource.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"db.datasource.js","sourceRoot":"","sources":["../../src/datasources/db.datasource.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,gDAAgD;AAChD,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAsC;AACtC,qDAA6C;AAE7C,MAAM,MAAM,GAAG;IACb,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,QAAQ;IACnB,YAAY,EAAE,EAAE;IAChB,IAAI,EAAE,gBAAgB;CACvB,CAAC;AAEF,IAAa,YAAY,GAAzB,MAAa,YAAa,SAAQ,oBAAO,CAAC,UAAU;IAIlD,YAEE,WAAmB,MAAM;QAEzB,KAAK,CAAC,QAAQ,CAAC,CAAC;IAClB,CAAC;CACF,CAAA;AATQ,2BAAc,GAAG,IAAI,CAAC;AACb,0BAAa,GAAG,MAAO,CAAA;AAF5B,YAAY;IAKpB,mBAAA,IAAA,aAAM,EAAC,uBAAuB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAA;;GALzC,YAAY,CAUxB;AAVY,oCAAY"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-passport-login
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
const tslib_1 = require("tslib");
|
|
8
|
-
|
|
8
|
+
tslib_1.__exportStar(require("./db.datasource"), exports);
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/datasources/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/datasources/index.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,gDAAgD;AAChD,+CAA+C;AAC/C,gEAAgE;;;AAEhE,0DAAgC"}
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-passport-login
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.main = exports.startApplication = exports.setupApplication = exports.serverConfig = void 0;
|
|
8
8
|
const tslib_1 = require("tslib");
|
|
9
|
-
const path =
|
|
9
|
+
const path = tslib_1.__importStar(require("path"));
|
|
10
10
|
const authentication_strategies_1 = require("./authentication-strategies");
|
|
11
11
|
const server_1 = require("./server");
|
|
12
|
-
|
|
12
|
+
tslib_1.__exportStar(require("./server"), exports);
|
|
13
13
|
/**
|
|
14
14
|
* Prepare server config
|
|
15
15
|
* @param oauth2Providers
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,gDAAgD;AAChD,+CAA+C;AAC/C,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,MAAM,GAAG,MAAM,YAAY,CAAC,eAAe,CAAC,CAAC;IACnD,MAAM,MAAM,GAAG,IAAI,sBAAa,CAAC,MAAM,CAAC,CAAC;IACzC,MAAM,gBAAgB,CAAC,MAAM,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;IACnD,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;IACpB,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;IACrB,OAAO,MAAM,CAAC;AAChB,CAAC;AAXD,4CAWC;AAED;;GAEG;AACI,KAAK,UAAU,IAAI;IACxB,IAAI,eAAe,CAAC;IACpB,IAAI,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE;QACxC,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;KACjE;SAAM;QACL,eAAe,GAAG,OAAO,CAAC,gCAAgC,CAAC,CAAC;KAC7D;IACD,MAAM,MAAM,GAAkB,MAAM,gBAAgB,CAClD,eAAe,EACf,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAC7B,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,wBAAwB,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC;AACpD,CAAC;AAZD,oBAYC;AAED,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE;IAC3B,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;QACjB,OAAO,CAAC,KAAK,CAAC,+BAA+B,EAAE,GAAG,CAAC,CAAC;QACpD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;CACJ"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-passport-login
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
const tslib_1 = require("tslib");
|
|
8
|
-
|
|
8
|
+
tslib_1.__exportStar(require("./user.rest-config"), exports);
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/model-endpoints/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/model-endpoints/index.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,gDAAgD;AAChD,+CAA+C;AAC/C,gEAAgE;;;AAEhE,6DAAmC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-passport-login
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.rest-config.js","sourceRoot":"","sources":["../../src/model-endpoints/user.rest-config.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"user.rest-config.js","sourceRoot":"","sources":["../../src/model-endpoints/user.rest-config.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,gDAAgD;AAChD,+CAA+C;AAC/C,gEAAgE;;AAGhE,qDAA0C;AAE1C,MAAM,CAAC,OAAO,GAA2B;IACvC,KAAK,EAAE,iBAAI;IACX,OAAO,EAAE,UAAU;IACnB,UAAU,EAAE,IAAI;IAChB,QAAQ,EAAE,QAAQ;CACnB,CAAC"}
|
package/dist/models/index.d.ts
CHANGED
package/dist/models/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-passport-login
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
const tslib_1 = require("tslib");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
tslib_1.__exportStar(require("./user-credentials.model"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./user-identity.model"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./user.model"), exports);
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
package/dist/models/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,gDAAgD;AAChD,+CAA+C;AAC/C,gEAAgE;;;AAEhE,mEAAyC;AACzC,gEAAsC;AACtC,uDAA6B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-passport-login
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -13,28 +13,28 @@ let UserCredentials = class UserCredentials extends repository_1.Entity {
|
|
|
13
13
|
super(data);
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
tslib_1.__decorate([
|
|
17
17
|
(0, repository_1.property)({
|
|
18
18
|
type: 'string',
|
|
19
19
|
id: true,
|
|
20
20
|
}),
|
|
21
|
-
|
|
21
|
+
tslib_1.__metadata("design:type", String)
|
|
22
22
|
], UserCredentials.prototype, "id", void 0);
|
|
23
|
-
|
|
23
|
+
tslib_1.__decorate([
|
|
24
24
|
(0, repository_1.property)({
|
|
25
25
|
type: 'string',
|
|
26
26
|
required: true,
|
|
27
27
|
hidden: true,
|
|
28
28
|
}),
|
|
29
|
-
|
|
29
|
+
tslib_1.__metadata("design:type", String)
|
|
30
30
|
], UserCredentials.prototype, "password", void 0);
|
|
31
|
-
|
|
31
|
+
tslib_1.__decorate([
|
|
32
32
|
(0, repository_1.belongsTo)(() => user_model_1.User),
|
|
33
|
-
|
|
33
|
+
tslib_1.__metadata("design:type", Number)
|
|
34
34
|
], UserCredentials.prototype, "userId", void 0);
|
|
35
|
-
UserCredentials =
|
|
35
|
+
UserCredentials = tslib_1.__decorate([
|
|
36
36
|
(0, repository_1.model)(),
|
|
37
|
-
|
|
37
|
+
tslib_1.__metadata("design:paramtypes", [Object])
|
|
38
38
|
], UserCredentials);
|
|
39
39
|
exports.UserCredentials = UserCredentials;
|
|
40
40
|
//# sourceMappingURL=user-credentials.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-credentials.model.js","sourceRoot":"","sources":["../../src/models/user-credentials.model.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"user-credentials.model.js","sourceRoot":"","sources":["../../src/models/user-credentials.model.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,gDAAgD;AAChD,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,qDAAwE;AACxE,6CAAkC;AAGlC,IAAa,eAAe,GAA5B,MAAa,eAAgB,SAAQ,mBAAM;IAiBzC,YAAY,IAA+B;QACzC,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;CACF,CAAA;AAfC;IAJC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;QACd,EAAE,EAAE,IAAI;KACT,CAAC;;2CACS;AAOX;IALC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,IAAI;KACb,CAAC;;iDACe;AAGjB;IADC,IAAA,sBAAS,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;;+CACN;AAfL,eAAe;IAD3B,IAAA,kBAAK,GAAE;;GACK,eAAe,CAoB3B;AApBY,0CAAe"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-passport-login
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -13,54 +13,54 @@ let UserIdentity = class UserIdentity extends repository_1.Entity {
|
|
|
13
13
|
super(data);
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
tslib_1.__decorate([
|
|
17
17
|
(0, repository_1.property)({
|
|
18
18
|
type: 'string',
|
|
19
19
|
id: true,
|
|
20
20
|
}),
|
|
21
|
-
|
|
21
|
+
tslib_1.__metadata("design:type", String)
|
|
22
22
|
], UserIdentity.prototype, "id", void 0);
|
|
23
|
-
|
|
23
|
+
tslib_1.__decorate([
|
|
24
24
|
(0, repository_1.property)({
|
|
25
25
|
type: 'string',
|
|
26
26
|
required: true,
|
|
27
27
|
}),
|
|
28
|
-
|
|
28
|
+
tslib_1.__metadata("design:type", String)
|
|
29
29
|
], UserIdentity.prototype, "provider", void 0);
|
|
30
|
-
|
|
30
|
+
tslib_1.__decorate([
|
|
31
31
|
(0, repository_1.property)({
|
|
32
32
|
type: 'object',
|
|
33
33
|
required: true,
|
|
34
34
|
}),
|
|
35
|
-
|
|
35
|
+
tslib_1.__metadata("design:type", Object)
|
|
36
36
|
], UserIdentity.prototype, "profile", void 0);
|
|
37
|
-
|
|
37
|
+
tslib_1.__decorate([
|
|
38
38
|
(0, repository_1.property)({
|
|
39
39
|
type: 'object',
|
|
40
40
|
}),
|
|
41
|
-
|
|
41
|
+
tslib_1.__metadata("design:type", Object)
|
|
42
42
|
], UserIdentity.prototype, "credentials", void 0);
|
|
43
|
-
|
|
43
|
+
tslib_1.__decorate([
|
|
44
44
|
(0, repository_1.property)({
|
|
45
45
|
type: 'string',
|
|
46
46
|
required: true,
|
|
47
47
|
}),
|
|
48
|
-
|
|
48
|
+
tslib_1.__metadata("design:type", String)
|
|
49
49
|
], UserIdentity.prototype, "authScheme", void 0);
|
|
50
|
-
|
|
50
|
+
tslib_1.__decorate([
|
|
51
51
|
(0, repository_1.property)({
|
|
52
52
|
type: 'date',
|
|
53
53
|
required: true,
|
|
54
54
|
}),
|
|
55
|
-
|
|
55
|
+
tslib_1.__metadata("design:type", Date)
|
|
56
56
|
], UserIdentity.prototype, "created", void 0);
|
|
57
|
-
|
|
57
|
+
tslib_1.__decorate([
|
|
58
58
|
(0, repository_1.belongsTo)(() => user_model_1.User),
|
|
59
|
-
|
|
59
|
+
tslib_1.__metadata("design:type", Number)
|
|
60
60
|
], UserIdentity.prototype, "userId", void 0);
|
|
61
|
-
UserIdentity =
|
|
61
|
+
UserIdentity = tslib_1.__decorate([
|
|
62
62
|
(0, repository_1.model)(),
|
|
63
|
-
|
|
63
|
+
tslib_1.__metadata("design:paramtypes", [Object])
|
|
64
64
|
], UserIdentity);
|
|
65
65
|
exports.UserIdentity = UserIdentity;
|
|
66
66
|
//# sourceMappingURL=user-identity.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-identity.model.js","sourceRoot":"","sources":["../../src/models/user-identity.model.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"user-identity.model.js","sourceRoot":"","sources":["../../src/models/user-identity.model.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,gDAAgD;AAChD,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,qDAAwE;AACxE,6CAAkC;AAGlC,IAAa,YAAY,GAAzB,MAAa,YAAa,SAAQ,mBAAM;IAuCtC,YAAY,IAA4B;QACtC,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;CACF,CAAA;AArCC;IAJC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;QACd,EAAE,EAAE,IAAI;KACT,CAAC;;wCACS;AAMX;IAJC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;KACf,CAAC;;8CACe;AAMjB;IAJC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;KACf,CAAC;;6CACc;AAKhB;IAHC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;KACf,CAAC;;iDACmB;AAMrB;IAJC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;KACf,CAAC;;gDACiB;AAMnB;IAJC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACf,CAAC;sCACQ,IAAI;6CAAC;AAGf;IADC,IAAA,sBAAS,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;;4CACP;AArCJ,YAAY;IADxB,IAAA,kBAAK,GAAE;;GACK,YAAY,CA0CxB;AA1CY,oCAAY"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-passport-login
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -14,65 +14,65 @@ let User = class User extends repository_1.Entity {
|
|
|
14
14
|
super(data);
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
-
|
|
17
|
+
tslib_1.__decorate([
|
|
18
18
|
(0, repository_1.property)({
|
|
19
19
|
type: 'number',
|
|
20
20
|
id: true,
|
|
21
21
|
generated: true,
|
|
22
22
|
}),
|
|
23
|
-
|
|
23
|
+
tslib_1.__metadata("design:type", Number)
|
|
24
24
|
], User.prototype, "id", void 0);
|
|
25
|
-
|
|
25
|
+
tslib_1.__decorate([
|
|
26
26
|
(0, repository_1.property)({
|
|
27
27
|
type: 'string',
|
|
28
28
|
required: true,
|
|
29
29
|
}),
|
|
30
|
-
|
|
30
|
+
tslib_1.__metadata("design:type", String)
|
|
31
31
|
], User.prototype, "name", void 0);
|
|
32
|
-
|
|
32
|
+
tslib_1.__decorate([
|
|
33
33
|
(0, repository_1.property)({
|
|
34
34
|
type: 'string',
|
|
35
35
|
}),
|
|
36
|
-
|
|
36
|
+
tslib_1.__metadata("design:type", String)
|
|
37
37
|
], User.prototype, "realm", void 0);
|
|
38
|
-
|
|
38
|
+
tslib_1.__decorate([
|
|
39
39
|
(0, repository_1.property)({
|
|
40
40
|
type: 'string',
|
|
41
41
|
required: true,
|
|
42
42
|
index: { unique: true },
|
|
43
43
|
}),
|
|
44
|
-
|
|
44
|
+
tslib_1.__metadata("design:type", String)
|
|
45
45
|
], User.prototype, "username", void 0);
|
|
46
|
-
|
|
46
|
+
tslib_1.__decorate([
|
|
47
47
|
(0, repository_1.property)({
|
|
48
48
|
type: 'string',
|
|
49
49
|
required: true,
|
|
50
50
|
}),
|
|
51
|
-
|
|
51
|
+
tslib_1.__metadata("design:type", String)
|
|
52
52
|
], User.prototype, "email", void 0);
|
|
53
|
-
|
|
53
|
+
tslib_1.__decorate([
|
|
54
54
|
(0, repository_1.property)({
|
|
55
55
|
type: 'boolean',
|
|
56
56
|
}),
|
|
57
|
-
|
|
57
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
58
58
|
], User.prototype, "emailVerified", void 0);
|
|
59
|
-
|
|
59
|
+
tslib_1.__decorate([
|
|
60
60
|
(0, repository_1.property)({
|
|
61
61
|
type: 'string',
|
|
62
62
|
}),
|
|
63
|
-
|
|
63
|
+
tslib_1.__metadata("design:type", String)
|
|
64
64
|
], User.prototype, "verificationToken", void 0);
|
|
65
|
-
|
|
65
|
+
tslib_1.__decorate([
|
|
66
66
|
(0, repository_1.hasOne)(() => user_credentials_model_1.UserCredentials),
|
|
67
|
-
|
|
67
|
+
tslib_1.__metadata("design:type", user_credentials_model_1.UserCredentials)
|
|
68
68
|
], User.prototype, "credentials", void 0);
|
|
69
|
-
|
|
69
|
+
tslib_1.__decorate([
|
|
70
70
|
(0, repository_1.hasMany)(() => user_identity_model_1.UserIdentity),
|
|
71
|
-
|
|
71
|
+
tslib_1.__metadata("design:type", Array)
|
|
72
72
|
], User.prototype, "profiles", void 0);
|
|
73
|
-
User =
|
|
73
|
+
User = tslib_1.__decorate([
|
|
74
74
|
(0, repository_1.model)(),
|
|
75
|
-
|
|
75
|
+
tslib_1.__metadata("design:paramtypes", [Object])
|
|
76
76
|
], User);
|
|
77
77
|
exports.User = User;
|
|
78
78
|
//# sourceMappingURL=user.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.model.js","sourceRoot":"","sources":["../../src/models/user.model.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"user.model.js","sourceRoot":"","sources":["../../src/models/user.model.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,gDAAgD;AAChD,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,qDAA8E;AAC9E,qEAAyD;AACzD,+DAAmD;AAGnD,IAAa,IAAI,GAAjB,MAAa,IAAK,SAAQ,mBAAM;IAkD9B,YAAY,IAAoB;QAC9B,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;CACF,CAAA;AA/CC;IALC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;QACd,EAAE,EAAE,IAAI;QACR,SAAS,EAAE,IAAI;KAChB,CAAC;;gCACS;AAMX;IAJC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;KACf,CAAC;;kCACW;AAKb;IAHC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;KACf,CAAC;;mCACa;AAQf;IALC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,EAAC,MAAM,EAAE,IAAI,EAAC;KACtB,CAAC;;sCACe;AAOjB;IAJC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;KACf,CAAC;;mCACY;AAKd;IAHC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,SAAS;KAChB,CAAC;;2CACsB;AAKxB;IAHC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;KACf,CAAC;;+CACyB;AAG3B;IADC,IAAA,mBAAM,EAAC,GAAG,EAAE,CAAC,wCAAe,CAAC;sCAChB,wCAAe;yCAAC;AAG9B;IADC,IAAA,oBAAO,EAAC,GAAG,EAAE,CAAC,kCAAY,CAAC;;sCACF;AAhDf,IAAI;IADhB,IAAA,kBAAK,GAAE;;GACK,IAAI,CAqDhB;AArDY,oBAAI"}
|
package/dist/observers/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-passport-login
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
const tslib_1 = require("tslib");
|
|
8
|
-
|
|
8
|
+
tslib_1.__exportStar(require("./wire.observer"), exports);
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/observers/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/observers/index.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,gDAAgD;AAChD,+CAA+C;AAC/C,gEAAgE;;;AAEhE,0DAAgC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-passport-login
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -24,10 +24,10 @@ let WireObserver = class WireObserver {
|
|
|
24
24
|
(0, wiring_1.setupBindings)(this.app);
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
|
-
WireObserver =
|
|
27
|
+
WireObserver = tslib_1.__decorate([
|
|
28
28
|
(0, core_1.lifeCycleObserver)('wire'),
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
tslib_1.__param(0, (0, core_1.inject)(core_1.CoreBindings.APPLICATION_INSTANCE)),
|
|
30
|
+
tslib_1.__metadata("design:paramtypes", [core_1.Application])
|
|
31
31
|
], WireObserver);
|
|
32
32
|
exports.WireObserver = WireObserver;
|
|
33
33
|
//# sourceMappingURL=wire.observer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wire.observer.js","sourceRoot":"","sources":["../../src/observers/wire.observer.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"wire.observer.js","sourceRoot":"","sources":["../../src/observers/wire.observer.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,gDAAgD;AAChD,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAMwB;AACxB,sCAAwC;AAExC;;;GAGG;AAEH,IAAa,YAAY,GAAzB,MAAa,YAAY;IACvB,YACqD,GAAgB;QAAhB,QAAG,GAAH,GAAG,CAAa;IAClE,CAAC;IAEJ;;;OAGG;IACH,KAAK,CAAC,IAAI;QACR,IAAA,sBAAa,EAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC1B,CAAC;CACF,CAAA;AAZY,YAAY;IADxB,IAAA,wBAAiB,EAAC,MAAM,CAAC;IAGrB,mBAAA,IAAA,aAAM,EAAC,mBAAY,CAAC,oBAAoB,CAAC,CAAA;6CAAc,kBAAW;GAF1D,YAAY,CAYxB;AAZY,oCAAY"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-passport-login
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
const tslib_1 = require("tslib");
|
|
8
|
-
|
|
8
|
+
tslib_1.__exportStar(require("./user.repository"), exports);
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,gDAAgD;AAChD,+CAA+C;AAC/C,gEAAgE;;;AAEhE,4DAAkC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DefaultCrudRepository } from '@loopback/repository';
|
|
2
|
-
import { UserCredentials } from '../models';
|
|
3
2
|
import { DbDataSource } from '../datasources';
|
|
3
|
+
import { UserCredentials } from '../models';
|
|
4
4
|
export declare class UserCredentialsRepository extends DefaultCrudRepository<UserCredentials, typeof UserCredentials.prototype.id, UserCredentials> {
|
|
5
5
|
constructor(dataSource: DbDataSource);
|
|
6
6
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-passport-login
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.UserCredentialsRepository = void 0;
|
|
8
8
|
const tslib_1 = require("tslib");
|
|
9
|
+
const core_1 = require("@loopback/core");
|
|
9
10
|
const repository_1 = require("@loopback/repository");
|
|
10
|
-
const models_1 = require("../models");
|
|
11
11
|
const datasources_1 = require("../datasources");
|
|
12
|
-
const
|
|
12
|
+
const models_1 = require("../models");
|
|
13
13
|
let UserCredentialsRepository = class UserCredentialsRepository extends repository_1.DefaultCrudRepository {
|
|
14
14
|
constructor(dataSource) {
|
|
15
15
|
super(models_1.UserCredentials, dataSource);
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
|
-
UserCredentialsRepository =
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
UserCredentialsRepository = tslib_1.__decorate([
|
|
19
|
+
tslib_1.__param(0, (0, core_1.inject)('datasources.db')),
|
|
20
|
+
tslib_1.__metadata("design:paramtypes", [datasources_1.DbDataSource])
|
|
21
21
|
], UserCredentialsRepository);
|
|
22
22
|
exports.UserCredentialsRepository = UserCredentialsRepository;
|
|
23
23
|
//# sourceMappingURL=user-credentials.repository.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-credentials.repository.js","sourceRoot":"","sources":["../../src/repositories/user-credentials.repository.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"user-credentials.repository.js","sourceRoot":"","sources":["../../src/repositories/user-credentials.repository.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,gDAAgD;AAChD,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAsC;AACtC,qDAA2D;AAC3D,gDAA4C;AAC5C,sCAA0C;AAE1C,IAAa,yBAAyB,GAAtC,MAAa,yBAA0B,SAAQ,kCAI9C;IACC,YAAsC,UAAwB;QAC5D,KAAK,CAAC,wBAAe,EAAE,UAAU,CAAC,CAAC;IACrC,CAAC;CACF,CAAA;AARY,yBAAyB;IAKvB,mBAAA,IAAA,aAAM,EAAC,gBAAgB,CAAC,CAAA;6CAAa,0BAAY;GALnD,yBAAyB,CAQrC;AARY,8DAAyB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DefaultCrudRepository } from '@loopback/repository';
|
|
2
|
-
import { UserIdentity } from '../models';
|
|
3
2
|
import { DbDataSource } from '../datasources';
|
|
3
|
+
import { UserIdentity } from '../models';
|
|
4
4
|
export declare class UserIdentityRepository extends DefaultCrudRepository<UserIdentity, typeof UserIdentity.prototype.id, UserIdentity> {
|
|
5
5
|
constructor(dataSource: DbDataSource);
|
|
6
6
|
}
|