@loopback/authentication 8.1.1 → 9.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/LICENSE +1 -1
- package/dist/authentication.component.js +2 -2
- package/dist/authentication.component.js.map +1 -1
- package/dist/decorators/authenticate.decorator.d.ts +1 -1
- package/dist/decorators/authenticate.decorator.js +1 -1
- package/dist/decorators/authenticate.decorator.js.map +1 -1
- package/dist/decorators/index.js +2 -2
- package/dist/decorators/index.js.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/keys.d.ts +1 -1
- package/dist/keys.js +1 -1
- package/dist/keys.js.map +1 -1
- package/dist/providers/auth-action.provider.js +11 -11
- package/dist/providers/auth-action.provider.js.map +1 -1
- package/dist/providers/auth-metadata.provider.js +6 -6
- package/dist/providers/auth-metadata.provider.js.map +1 -1
- package/dist/providers/auth-strategy.provider.js +5 -5
- package/dist/providers/auth-strategy.provider.js.map +1 -1
- package/dist/providers/index.js +4 -4
- package/dist/providers/index.js.map +1 -1
- package/dist/services/index.d.ts +1 -1
- package/dist/services/index.js +4 -4
- package/dist/services/index.js.map +1 -1
- package/dist/services/token.service.js +1 -1
- package/dist/services/token.service.js.map +1 -1
- package/dist/services/user-identity.service.js +1 -1
- package/dist/services/user-identity.service.js.map +1 -1
- package/dist/services/user.service.js +1 -1
- package/dist/services/user.service.js.map +1 -1
- package/dist/types.js +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +17 -17
- package/src/authentication.component.ts +1 -1
- package/src/decorators/authenticate.decorator.ts +1 -1
- package/src/decorators/index.ts +1 -1
- package/src/index.ts +1 -1
- package/src/keys.ts +2 -2
- package/src/providers/auth-action.provider.ts +1 -1
- package/src/providers/auth-metadata.provider.ts +1 -1
- package/src/providers/auth-strategy.provider.ts +1 -1
- package/src/providers/index.ts +1 -1
- package/src/services/index.ts +2 -2
- package/src/services/token.service.ts +1 -1
- package/src/services/user-identity.service.ts +1 -1
- package/src/services/user.service.ts +1 -1
- package/src/types.ts +1 -1
package/LICENSE
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2018,2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2018,2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/authentication
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -19,7 +19,7 @@ let AuthenticationComponent = class AuthenticationComponent {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
|
-
AuthenticationComponent =
|
|
22
|
+
AuthenticationComponent = tslib_1.__decorate([
|
|
23
23
|
(0, core_1.injectable)({ tags: { [core_1.ContextTags.KEY]: keys_1.AuthenticationBindings.COMPONENT } })
|
|
24
24
|
], AuthenticationComponent);
|
|
25
25
|
exports.AuthenticationComponent = AuthenticationComponent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authentication.component.js","sourceRoot":"","sources":["../src/authentication.component.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"authentication.component.js","sourceRoot":"","sources":["../src/authentication.component.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,wCAAwC;AACxC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAkE;AAClE,iCAA8C;AAC9C,2CAKqB;AAGrB,IAAa,uBAAuB,GAApC,MAAa,uBAAuB;IAApC;QACE,cAAS,GAAG;YACV,CAAC,6BAAsB,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,sCAA0B;YACpE,CAAC,6BAAsB,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,0CAA8B;YACrE,CAAC,6BAAsB,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,gCAAoB;YAC3D,CAAC,6BAAsB,CAAC,yBAAyB,CAAC,GAAG,CAAC,EACpD,4CAAgC;SACnC,CAAC;IACJ,CAAC;CAAA,CAAA;AARY,uBAAuB;IADnC,IAAA,iBAAU,EAAC,EAAC,IAAI,EAAE,EAAC,CAAC,kBAAW,CAAC,GAAG,CAAC,EAAE,6BAAsB,CAAC,SAAS,EAAC,EAAC,CAAC;GAC7D,uBAAuB,CAQnC;AARY,0DAAuB"}
|
|
@@ -6,7 +6,7 @@ import { AuthenticationMetadata } from '../types';
|
|
|
6
6
|
* @param strategies - The names of the authentication strategies to use
|
|
7
7
|
* or authentication metadata objects.
|
|
8
8
|
*/
|
|
9
|
-
export declare function authenticate(...strategies: (string | AuthenticationMetadata)[]): (target: any, method?: string
|
|
9
|
+
export declare function authenticate(...strategies: (string | AuthenticationMetadata)[]): (target: any, method?: string, methodDescriptor?: TypedPropertyDescriptor<any>) => any;
|
|
10
10
|
export declare namespace authenticate {
|
|
11
11
|
/**
|
|
12
12
|
* `@authenticate.skip()` - a sugar decorator to skip authentication
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2018,2019. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2018,2019. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/authentication
|
|
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":"authenticate.decorator.js","sourceRoot":"","sources":["../../src/decorators/authenticate.decorator.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"authenticate.decorator.js","sourceRoot":"","sources":["../../src/decorators/authenticate.decorator.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,wCAAwC;AACxC,+CAA+C;AAC/C,gEAAgE;;;AAEhE,yCAMwB;AACxB,kCAIiB;AAGjB,MAAM,iCAAkC,SAAQ,4BAE/C;CAAG;AAEJ;;;;;GAKG;AACH,SAAgB,YAAY,CAC1B,GAAG,UAA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BAAY,QAK5B;AAED;;;;;GAKG;AACH,SAAgB,uBAAuB,CACrC,WAA4B,EAC5B,UAAkB;IAElB,2BAA2B;IAC3B,IAAI,QAAQ,GAAG,wBAAiB,CAAC,iBAAiB,CAChD,yCAAkC,EAClC,WAAW,CAAC,SAAS,EACrB,UAAU,CACX,CAAC;IACF,IAAI,QAAQ;QAAE,OAAO,QAAQ,CAAC;IAC9B,+CAA+C;IAC/C,QAAQ,GAAG,wBAAiB,CAAC,gBAAgB,CAC3C,wCAAiC,EACjC,WAAW,CACZ,CAAC;IACF,OAAO,QAAQ,CAAC;AAClB,CAAC;AAjBD,0DAiBC"}
|
package/dist/decorators/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2018,2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2018,2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/authentication
|
|
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("./authenticate.decorator"), exports);
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/decorators/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/decorators/index.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,wCAAwC;AACxC,+CAA+C;AAC/C,gEAAgE;;;AAEhE,mEAAyC"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2017,2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2017,2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/authentication
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -21,10 +21,10 @@ const tslib_1 = require("tslib");
|
|
|
21
21
|
*
|
|
22
22
|
* @packageDocumentation
|
|
23
23
|
*/
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
tslib_1.__exportStar(require("./authentication.component"), exports);
|
|
25
|
+
tslib_1.__exportStar(require("./decorators"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("./keys"), exports);
|
|
27
|
+
tslib_1.__exportStar(require("./providers"), exports);
|
|
28
|
+
tslib_1.__exportStar(require("./services"), exports);
|
|
29
|
+
tslib_1.__exportStar(require("./types"), exports);
|
|
30
30
|
//# sourceMappingURL=index.js.map
|
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,gFAAgF;AAChF,wCAAwC;AACxC,+CAA+C;AAC/C,gEAAgE;;;AAEhE;;;;;;;;;;;;;;;GAeG;AAEH,qEAA2C;AAC3C,uDAA6B;AAC7B,iDAAuB;AACvB,sDAA4B;AAC5B,qDAA2B;AAC3B,kDAAwB"}
|
package/dist/keys.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BindingKey, MetadataAccessor } from '@loopback/core';
|
|
2
|
-
import { UserProfile } from '@loopback/security';
|
|
3
2
|
import { Middleware } from '@loopback/rest';
|
|
3
|
+
import { UserProfile } from '@loopback/security';
|
|
4
4
|
import { AuthenticationComponent } from './authentication.component';
|
|
5
5
|
import { AuthenticateFn, AuthenticationMetadata, AuthenticationStrategy, UserProfileFactory } from './types';
|
|
6
6
|
/**
|
package/dist/keys.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2017,2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2017,2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/authentication
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
package/dist/keys.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keys.js","sourceRoot":"","sources":["../src/keys.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"keys.js","sourceRoot":"","sources":["../src/keys.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,wCAAwC;AACxC,+CAA+C;AAC/C,gEAAgE;;;AAEhE,yCAA4D;AAE5D,iDAAiE;AASjE;;GAEG;AACH,IAAiB,sBAAsB,CAqHtC;AArHD,WAAiB,sBAAsB;IACxB,gCAAS,GAAG,iBAAU,CAAC,MAAM,CACxC,oCAAoC,CACrC,CAAC;IAEF;;;;;;;;;;;OAWG;IACH,uDAAuD;IAC1C,2CAAoB,GAAG,iBAAU,CAAC,MAAM,CAEnD,mCAAmC,CAAC,CAAC;IAEvC;;;;;;;;;;OAUG;IACU,+BAAQ,GAAG,iBAAU,CAAC,MAAM,CAEvC,yBAAyB,CAAC,CAAC;IAE7B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACU,kCAAW,GAAG,iBAAU,CAAC,MAAM,CAC1C,qCAAqC,CACtC,CAAC;IAEF;;OAEG;IACU,gDAAyB,GAAG,iBAAU,CAAC,MAAM,CACxD,2BAA2B,CAC5B,CAAC;IAEF;;;;;;;;;;;;;;;;;;OAkBG;IACU,+BAAQ,GAAG,iBAAU,CAAC,MAAM,CAEvC,kCAAkC,CAAC,CAAC;IAEzB,mEAA4C,GACvD,2BAA2B,CAAC;IAE9B,oFAAoF;IACvE,mCAAY,GAA4B,2BAAgB,CAAC,IAAI,CAAC;IAE3E,+CAA+C;IAClC,kDAA2B,GAAG,iBAAU,CAAC,MAAM,CAC1D,6BAA6B,CAC9B,CAAC;IAEF,2FAA2F;IAC9E,qDAA8B,GAAG,iBAAU,CAAC,MAAM,CAC7D,gCAAgC,CACjC,CAAC;AACJ,CAAC,EArHgB,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAqHtC;AAED;;GAEG;AACU,QAAA,kCAAkC,GAAG,uBAAgB,CAAC,MAAM,CAGvE,uBAAuB,CAAC,CAAC;AAE3B;;GAEG;AACU,QAAA,2BAA2B,GAAG,0CAAkC,CAAC;AAE9E;;GAEG;AACU,QAAA,iCAAiC,GAAG,uBAAgB,CAAC,MAAM,CAGtE,sBAAsB,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2019,2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2019,2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/authentication
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -93,13 +93,13 @@ let AuthenticateActionProvider = class AuthenticateActionProvider {
|
|
|
93
93
|
throw error;
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
|
-
AuthenticateActionProvider =
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
96
|
+
AuthenticateActionProvider = tslib_1.__decorate([
|
|
97
|
+
tslib_1.__param(0, core_1.inject.getter(keys_1.AuthenticationBindings.STRATEGY)),
|
|
98
|
+
tslib_1.__param(1, core_1.inject.setter(security_1.SecurityBindings.USER)),
|
|
99
|
+
tslib_1.__param(2, core_1.inject.setter(keys_1.AuthenticationBindings.AUTHENTICATION_REDIRECT_URL)),
|
|
100
|
+
tslib_1.__param(3, core_1.inject.setter(keys_1.AuthenticationBindings.AUTHENTICATION_REDIRECT_STATUS)),
|
|
101
|
+
tslib_1.__param(4, (0, core_1.config)({ fromBinding: keys_1.AuthenticationBindings.COMPONENT })),
|
|
102
|
+
tslib_1.__metadata("design:paramtypes", [Function, Function, Function, Function, Object])
|
|
103
103
|
], AuthenticateActionProvider);
|
|
104
104
|
exports.AuthenticateActionProvider = AuthenticateActionProvider;
|
|
105
105
|
let AuthenticationMiddlewareProvider = class AuthenticationMiddlewareProvider {
|
|
@@ -122,13 +122,13 @@ let AuthenticationMiddlewareProvider = class AuthenticationMiddlewareProvider {
|
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
|
-
AuthenticationMiddlewareProvider =
|
|
125
|
+
AuthenticationMiddlewareProvider = tslib_1.__decorate([
|
|
126
126
|
(0, core_1.injectable)((0, rest_1.asMiddleware)({
|
|
127
127
|
group: rest_1.RestMiddlewareGroups.AUTHENTICATION,
|
|
128
128
|
upstreamGroups: [rest_1.RestMiddlewareGroups.FIND_ROUTE],
|
|
129
129
|
})),
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
tslib_1.__param(0, (0, core_1.inject)(keys_1.AuthenticationBindings.AUTH_ACTION)),
|
|
131
|
+
tslib_1.__metadata("design:paramtypes", [Function])
|
|
132
132
|
], AuthenticationMiddlewareProvider);
|
|
133
133
|
exports.AuthenticationMiddlewareProvider = AuthenticationMiddlewareProvider;
|
|
134
134
|
//# sourceMappingURL=auth-action.provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-action.provider.js","sourceRoot":"","sources":["../../src/providers/auth-action.provider.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"auth-action.provider.js","sourceRoot":"","sources":["../../src/providers/auth-action.provider.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,wCAAwC;AACxC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAOw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;GAnB/C,0BAA0B,CAqFtC;AArFY,gEAA0B;AA6FvC,IAAa,gCAAgC,GAA7C,MAAa,gCAAgC;IAC3C,YAEU,YAA4B;QAA5B,iBAAY,GAAZ,YAAY,CAAgB;IACnC,CAAC;IAEJ,KAAK;QACH,OAAO,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;YACzB,IAAI;gBACF,MAAM,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;aACtC;YAAC,OAAO,KAAK,EAAE;gBACd,IACE,KAAK,CAAC,IAAI,KAAK,yCAAiC;oBAChD,KAAK,CAAC,IAAI,KAAK,8BAAsB,EACrC;oBACA,KAAK,CAAC,UAAU,GAAG,GAAG,CAAC;iBACxB;gBACD,MAAM,KAAK,CAAC;aACb;YACD,OAAO,IAAI,EAAE,CAAC;QAChB,CAAC,CAAC;IACJ,CAAC;CACF,CAAA;AAtBY,gCAAgC;IAN5C,IAAA,iBAAU,EACT,IAAA,mBAAY,EAAC;QACX,KAAK,EAAE,2BAAoB,CAAC,cAAc;QAC1C,cAAc,EAAE,CAAC,2BAAoB,CAAC,UAAU,CAAC;KAClD,CAAC,CACH;IAGI,mBAAA,IAAA,aAAM,EAAC,6BAAsB,CAAC,WAAW,CAAC,CAAA;;GAFlC,gCAAgC,CAsB5C;AAtBY,4EAAgC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2018,2019. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2018,2019. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/authentication
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -36,11 +36,11 @@ let AuthMetadataProvider = class AuthMetadataProvider {
|
|
|
36
36
|
return this.options.defaultMetadata;
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
|
-
AuthMetadataProvider =
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
AuthMetadataProvider = tslib_1.__decorate([
|
|
40
|
+
tslib_1.__param(0, (0, core_1.inject)(core_1.CoreBindings.CONTROLLER_CLASS, { optional: true })),
|
|
41
|
+
tslib_1.__param(1, (0, core_1.inject)(core_1.CoreBindings.CONTROLLER_METHOD_NAME, { optional: true })),
|
|
42
|
+
tslib_1.__param(2, (0, core_1.config)({ fromBinding: keys_1.AuthenticationBindings.COMPONENT })),
|
|
43
|
+
tslib_1.__metadata("design:paramtypes", [Object, String, Object])
|
|
44
44
|
], AuthMetadataProvider);
|
|
45
45
|
exports.AuthMetadataProvider = AuthMetadataProvider;
|
|
46
46
|
//# sourceMappingURL=auth-metadata.provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-metadata.provider.js","sourceRoot":"","sources":["../../src/providers/auth-metadata.provider.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"auth-metadata.provider.js","sourceRoot":"","sources":["../../src/providers/auth-metadata.provider.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,wCAAwC;AACxC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAMwB;AACxB,8CAAsD;AACtD,kCAA+C;AAG/C;;;GAGG;AACH,IAAa,oBAAoB,GAAjC,MAAa,oBAAoB;IAG/B,YAEmB,eAAgC,EAEhC,UAAkB,EAElB,UAAiC,EAAE;QAJnC,oBAAe,GAAf,eAAe,CAAiB;QAEhC,eAAU,GAAV,UAAU,CAAQ;QAElB,YAAO,GAAP,OAAO,CAA4B;IACnD,CAAC;IAEJ;;OAEG;IACH,KAAK;;QACH,IAAI,CAAC,IAAI,CAAC,eAAe,IAAI,CAAC,IAAI,CAAC,UAAU;YAAE,OAAO;QACtD,MAAM,QAAQ,GAAG,IAAA,oCAAuB,EACtC,IAAI,CAAC,eAAe,EACpB,IAAI,CAAC,UAAU,CAChB,CAAC;QACF,0CAA0C;QAC1C,IAAI,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,CAAC,CAAC,0CAAE,IAAI;YAAE,OAAO,SAAS,CAAC;QAC1C,IAAI,QAAQ;YAAE,OAAO,QAAQ,CAAC;QAC9B,gCAAgC;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC;IACtC,CAAC;CACF,CAAA;AA3BY,oBAAoB;IAI5B,mBAAA,IAAA,aAAM,EAAC,mBAAY,CAAC,gBAAgB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAA;IAEvD,mBAAA,IAAA,aAAM,EAAC,mBAAY,CAAC,sBAAsB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAA;IAE7D,mBAAA,IAAA,aAAM,EAAC,EAAC,WAAW,EAAE,6BAAsB,CAAC,SAAS,EAAC,CAAC,CAAA;;GAR/C,oBAAoB,CA2BhC;AA3BY,oDAAoB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2019. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/authentication
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -51,12 +51,12 @@ let AuthenticationStrategyProvider = class AuthenticationStrategyProvider {
|
|
|
51
51
|
return strategies;
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
|
-
AuthenticationStrategyProvider =
|
|
54
|
+
AuthenticationStrategyProvider = tslib_1.__decorate([
|
|
55
55
|
(0, core_1.extensionPoint)(keys_1.AuthenticationBindings.AUTHENTICATION_STRATEGY_EXTENSION_POINT_NAME, { scope: core_1.BindingScope.TRANSIENT }) //this needs to be transient, e.g. for request level context.
|
|
56
56
|
,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
tslib_1.__param(0, (0, core_1.extensions)()),
|
|
58
|
+
tslib_1.__param(1, (0, core_1.inject)(keys_1.AuthenticationBindings.METADATA)),
|
|
59
|
+
tslib_1.__metadata("design:paramtypes", [Function, Array])
|
|
60
60
|
], AuthenticationStrategyProvider);
|
|
61
61
|
exports.AuthenticationStrategyProvider = AuthenticationStrategyProvider;
|
|
62
62
|
//# sourceMappingURL=auth-strategy.provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-strategy.provider.js","sourceRoot":"","sources":["../../src/providers/auth-strategy.provider.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"auth-strategy.provider.js","sourceRoot":"","sources":["../../src/providers/auth-strategy.provider.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,wCAAwC;AACxC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAOwB;AACxB,kCAA+C;AAC/C,oCAIkB;AAElB;;;;;;;;GAQG;AAKH,IAAa,8BAA8B,GAA3C,MAAa,8BAA8B;IAGzC,YAEY,wBAA0D,EAE1D,QAAmC;QAFnC,6BAAwB,GAAxB,wBAAwB,CAAkC;QAE1D,aAAQ,GAAR,QAAQ,CAA2B;IAC5C,CAAC;IACJ,KAAK,CAAC,KAAK;;QACT,IAAI,CAAC,CAAA,MAAA,IAAI,CAAC,QAAQ,0CAAE,MAAM,CAAA,EAAE;YAC1B,OAAO,SAAS,CAAC;SAClB;QACD,OAAO,IAAI,CAAC,4BAA4B,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC1D,CAAC;IAEO,KAAK,CAAC,4BAA4B,CACxC,QAAkC;QAElC,MAAM,UAAU,GAA6B,EAAE,CAAC;QAEhD,MAAM,kBAAkB,GAAG,MAAM,IAAI,CAAC,wBAAwB,EAAE,CAAC;QAEjE,MAAM,YAAY,GAAG,CAAC,IAAY,EAAE,EAAE;YACpC,MAAM,QAAQ,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;YAC/D,IAAI,CAAC,QAAQ,EAAE;gBACb,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,iBAAiB,IAAI,qBAAqB,CAAC,CAAC;gBACpE,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE;oBACnB,IAAI,EAAE,yCAAiC;iBACxC,CAAC,CAAC;gBACH,MAAM,KAAK,CAAC;aACb;YACD,OAAO,QAAQ,CAAC;QAClB,CAAC,CAAC;QAEF,KAAK,MAAM,IAAI,IAAI,QAAQ,EAAE;YAC3B,MAAM,QAAQ,GAAG,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAC7C,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SAC3B;QAED,OAAO,UAAU,CAAC;IACpB,CAAC;CACF,CAAA;AA1CY,8BAA8B;IAJ1C,IAAA,qBAAc,EACb,6BAAsB,CAAC,4CAA4C,EACnE,EAAC,KAAK,EAAE,mBAAY,CAAC,SAAS,EAAC,CAChC,CAAC,6DAA6D;;IAK1D,mBAAA,IAAA,iBAAU,GAAE,CAAA;IAEZ,mBAAA,IAAA,aAAM,EAAC,6BAAsB,CAAC,QAAQ,CAAC,CAAA;;GAN/B,8BAA8B,CA0C1C;AA1CY,wEAA8B"}
|
package/dist/providers/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2018,2019. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2018,2019. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/authentication
|
|
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("./auth-action.provider"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./auth-metadata.provider"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./auth-strategy.provider"), exports);
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/providers/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/providers/index.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,wCAAwC;AACxC,+CAA+C;AAC/C,gEAAgE;;;AAEhE,iEAAuC;AACvC,mEAAyC;AACzC,mEAAyC"}
|
package/dist/services/index.d.ts
CHANGED
package/dist/services/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2019,2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2019,2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/authentication
|
|
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("./token.service"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./user-identity.service"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./user.service"), exports);
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,wCAAwC;AACxC,+CAA+C;AAC/C,gEAAgE;;;AAEhE,0DAAgC;AAChC,kEAAwC;AACxC,yDAA+B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2019,2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2019,2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/authentication
|
|
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":"token.service.js","sourceRoot":"","sources":["../../src/services/token.service.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"token.service.js","sourceRoot":"","sources":["../../src/services/token.service.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,wCAAwC;AACxC,+CAA+C;AAC/C,gEAAgE"}
|
|
@@ -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/authentication
|
|
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-identity.service.js","sourceRoot":"","sources":["../../src/services/user-identity.service.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"user-identity.service.js","sourceRoot":"","sources":["../../src/services/user-identity.service.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,wCAAwC;AACxC,+CAA+C;AAC/C,gEAAgE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2019. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/authentication
|
|
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.service.js","sourceRoot":"","sources":["../../src/services/user.service.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"user.service.js","sourceRoot":"","sources":["../../src/services/user.service.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,wCAAwC;AACxC,+CAA+C;AAC/C,gEAAgE"}
|
package/dist/types.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2018,2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2018,2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/authentication
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,wCAAwC;AACxC,+CAA+C;AAC/C,gEAAgE;;;AAEhE,yCAOwB;AAGxB,iCAA8C;AAyFjC,QAAA,iCAAiC,GAC5C,mCAAmC,CAAC;AAEzB,QAAA,sBAAsB,GAAG,wBAAwB,CAAC;AAE/D;;;;;;;GAOG;AACH,SAAgB,8BAA8B,CAC5C,OAAgB,EAChB,aAAkD;IAElD,OAAO,IAAA,mBAAY,EACjB,OAAO,EACP,6BAAsB,CAAC,4CAA4C,EACnE,aAAa,EACb;QACE,SAAS,EACP,6BAAsB,CAAC,4CAA4C;KACtE,CACF,CAAC;AACJ,CAAC;AAbD,wEAaC;AAED;;GAEG;AACI,MAAM,cAAc,GAAoB,OAAO,CAAC,EAAE;IACvD,IAAA,mBAAY,EACV,6BAAsB,CAAC,4CAA4C,CACpE,CAAC,OAAO,CAAC,CAAC;IACX,OAAO,CAAC,GAAG,CAAC;QACV,SAAS,EACP,6BAAsB,CAAC,4CAA4C;KACtE,CAAC,CAAC;AACL,CAAC,CAAC;AARW,QAAA,cAAc,kBAQzB;AAEF;;;;;GAKG;AACH,SAAgB,oCAAoC,CAClD,QAAkC,EAClC,YAAoB;IAEpB,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,KAAK,YAAY,CAAC,CAAC;AAC/D,CAAC;AALD,oFAKC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loopback/authentication",
|
|
3
3
|
"description": "A LoopBack component for authentication support.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "9.0.1",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"LoopBack",
|
|
7
7
|
"Authentication"
|
|
@@ -9,15 +9,15 @@
|
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"main": "dist/index.js",
|
|
11
11
|
"types": "dist/index.d.ts",
|
|
12
|
-
"author": "IBM Corp.",
|
|
13
|
-
"copyright.owner": "IBM Corp.",
|
|
12
|
+
"author": "IBM Corp. and LoopBack contributors",
|
|
13
|
+
"copyright.owner": "IBM Corp. and LoopBack contributors",
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
16
16
|
"url": "https://github.com/loopbackio/loopback-next.git",
|
|
17
17
|
"directory": "packages/authentication"
|
|
18
18
|
},
|
|
19
19
|
"engines": {
|
|
20
|
-
"node": "
|
|
20
|
+
"node": "14 || 16 || 17 || 18"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"acceptance": "lb-mocha \"dist/__tests__/acceptance/**/*.js\"",
|
|
@@ -39,25 +39,25 @@
|
|
|
39
39
|
"!*/__tests__"
|
|
40
40
|
],
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@loopback/core": "^
|
|
43
|
-
"@loopback/rest": "^
|
|
42
|
+
"@loopback/core": "^4.0.1",
|
|
43
|
+
"@loopback/rest": "^12.0.1"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@loopback/security": "^0.
|
|
46
|
+
"@loopback/security": "^0.8.1",
|
|
47
47
|
"@types/express": "^4.17.13",
|
|
48
|
-
"@types/lodash": "^4.14.
|
|
48
|
+
"@types/lodash": "^4.14.182",
|
|
49
49
|
"lodash": "^4.17.21",
|
|
50
|
-
"tslib": "^2.
|
|
50
|
+
"tslib": "^2.4.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@loopback/build": "^
|
|
54
|
-
"@loopback/core": "^
|
|
55
|
-
"@loopback/eslint-config": "^
|
|
56
|
-
"@loopback/openapi-spec-builder": "^
|
|
57
|
-
"@loopback/rest": "^
|
|
58
|
-
"@loopback/testlab": "^
|
|
59
|
-
"@types/node": "^
|
|
53
|
+
"@loopback/build": "^9.0.1",
|
|
54
|
+
"@loopback/core": "^4.0.1",
|
|
55
|
+
"@loopback/eslint-config": "^13.0.1",
|
|
56
|
+
"@loopback/openapi-spec-builder": "^5.0.1",
|
|
57
|
+
"@loopback/rest": "^12.0.1",
|
|
58
|
+
"@loopback/testlab": "^5.0.1",
|
|
59
|
+
"@types/node": "^14.18.21",
|
|
60
60
|
"jsonwebtoken": "^8.5.1"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "ccf7863d0639de966d6c6129b4aa94ba1dce2c33"
|
|
63
63
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2018,2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2018,2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/authentication
|
|
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. 2018,2019. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2018,2019. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/authentication
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/decorators/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2018,2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2018,2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/authentication
|
|
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. 2017,2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2017,2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/authentication
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/keys.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2017,2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2017,2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/authentication
|
|
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 {BindingKey, MetadataAccessor} from '@loopback/core';
|
|
7
|
-
import {SecurityBindings, UserProfile} from '@loopback/security';
|
|
8
7
|
import {Middleware} from '@loopback/rest';
|
|
8
|
+
import {SecurityBindings, UserProfile} from '@loopback/security';
|
|
9
9
|
import {AuthenticationComponent} from './authentication.component';
|
|
10
10
|
import {
|
|
11
11
|
AuthenticateFn,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2019,2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2019,2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/authentication
|
|
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. 2018,2019. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2018,2019. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/authentication
|
|
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. 2019. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/authentication
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/providers/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2018,2019. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2018,2019. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/authentication
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/services/index.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2019,2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2019,2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/authentication
|
|
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 './token.service';
|
|
7
|
-
export * from './user.service';
|
|
8
7
|
export * from './user-identity.service';
|
|
8
|
+
export * from './user.service';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2019,2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2019,2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/authentication
|
|
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/authentication
|
|
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. 2019. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/authentication
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/types.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2018,2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2018,2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/authentication
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|