@loopback/authentication 12.0.9 → 12.0.11
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/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": "12.0.
|
|
4
|
+
"version": "12.0.11",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"LoopBack",
|
|
7
7
|
"Authentication"
|
|
@@ -43,21 +43,21 @@
|
|
|
43
43
|
"@loopback/rest": "^15.0.0"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@loopback/security": "^0.12.
|
|
46
|
+
"@loopback/security": "^0.12.10",
|
|
47
47
|
"@types/express": "^4.17.25",
|
|
48
|
-
"@types/lodash": "^4.17.
|
|
49
|
-
"lodash": "^4.17.
|
|
48
|
+
"@types/lodash": "^4.17.23",
|
|
49
|
+
"lodash": "^4.17.23",
|
|
50
50
|
"tslib": "^2.8.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@loopback/build": "^12.0.
|
|
54
|
-
"@loopback/core": "^7.0.
|
|
53
|
+
"@loopback/build": "^12.0.9",
|
|
54
|
+
"@loopback/core": "^7.0.9",
|
|
55
55
|
"@loopback/eslint-config": "^16.0.1",
|
|
56
|
-
"@loopback/openapi-spec-builder": "^8.0.
|
|
57
|
-
"@loopback/rest": "^15.0.
|
|
58
|
-
"@loopback/testlab": "^8.0.
|
|
56
|
+
"@loopback/openapi-spec-builder": "^8.0.9",
|
|
57
|
+
"@loopback/rest": "^15.0.10",
|
|
58
|
+
"@loopback/testlab": "^8.0.9",
|
|
59
59
|
"@types/node": "^16.18.126",
|
|
60
60
|
"jsonwebtoken": "^9.0.3"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "77064f8efea6b713992283d653d8d46bdd724982"
|
|
63
63
|
}
|
|
@@ -18,9 +18,9 @@ import {AuthenticationMetadata, AuthenticationOptions} from '../types';
|
|
|
18
18
|
* Provides authentication metadata of a controller method
|
|
19
19
|
* @example `context.bind('authentication.operationMetadata').toProvider(AuthMetadataProvider)`
|
|
20
20
|
*/
|
|
21
|
-
export class AuthMetadataProvider
|
|
22
|
-
|
|
23
|
-
{
|
|
21
|
+
export class AuthMetadataProvider implements Provider<
|
|
22
|
+
AuthenticationMetadata[] | undefined
|
|
23
|
+
> {
|
|
24
24
|
constructor(
|
|
25
25
|
@inject(CoreBindings.CONTROLLER_CLASS, {optional: true})
|
|
26
26
|
private readonly controllerClass: Constructor<{}>,
|
|
@@ -31,9 +31,9 @@ import {
|
|
|
31
31
|
AuthenticationBindings.AUTHENTICATION_STRATEGY_EXTENSION_POINT_NAME,
|
|
32
32
|
{scope: BindingScope.TRANSIENT},
|
|
33
33
|
) //this needs to be transient, e.g. for request level context.
|
|
34
|
-
export class AuthenticationStrategyProvider
|
|
35
|
-
|
|
36
|
-
{
|
|
34
|
+
export class AuthenticationStrategyProvider implements Provider<
|
|
35
|
+
AuthenticationStrategy[] | undefined
|
|
36
|
+
> {
|
|
37
37
|
constructor(
|
|
38
38
|
@extensions()
|
|
39
39
|
protected authenticationStrategies: Getter<AuthenticationStrategy[]>,
|