Skip to content

Commit f3d483c

Browse files
aaqilnizdhmlau
authored andcommitted
fix: replace custom authentication-jwt component with @loopback/authentication-jwt
Signed-off-by: Muhammad Aaqil <aaqilcs102@gmail.com>
1 parent 834572d commit f3d483c

13 files changed

Lines changed: 7 additions & 300 deletions

File tree

examples/access-control-migration/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
},
5353
"dependencies": {
5454
"@loopback/authentication": "^11.0.11",
55+
"@loopback/authentication-jwt": "^0.15.11",
5556
"@loopback/authorization": "^0.15.11",
5657
"@loopback/boot": "^7.0.11",
5758
"@loopback/core": "^6.1.8",

examples/access-control-migration/src/application.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {CasbinAuthorizationComponent} from './components/casbin-authorization';
1616
import {
1717
JWTAuthenticationComponent,
1818
SECURITY_SCHEME_SPEC,
19-
} from './components/jwt-authentication';
19+
} from '@loopback/authentication-jwt';
2020
import {MySequence} from './sequence';
2121

2222
export {ApplicationConfig};

examples/access-control-migration/src/components/jwt-authentication/index.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

examples/access-control-migration/src/components/jwt-authentication/jwt-authentication-component.ts

Lines changed: 0 additions & 37 deletions
This file was deleted.

examples/access-control-migration/src/components/jwt-authentication/keys.ts

Lines changed: 0 additions & 34 deletions
This file was deleted.

examples/access-control-migration/src/components/jwt-authentication/services/index.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

examples/access-control-migration/src/components/jwt-authentication/services/jwt.auth.strategy.ts

Lines changed: 0 additions & 50 deletions
This file was deleted.

examples/access-control-migration/src/components/jwt-authentication/services/jwt.service.ts

Lines changed: 0 additions & 77 deletions
This file was deleted.

examples/access-control-migration/src/components/jwt-authentication/services/security.spec.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

examples/access-control-migration/src/components/jwt-authentication/services/user.service.ts

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)