@loopback/example-passport-login 5.1.1 → 5.1.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 CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [5.1.2](https://github.com/loopbackio/loopback-next/compare/@loopback/example-passport-login@5.1.1...@loopback/example-passport-login@5.1.2) (2023-08-15)
7
+
8
+ **Note:** Version bump only for package @loopback/example-passport-login
9
+
10
+
11
+
12
+
13
+
6
14
  ## [5.1.1](https://github.com/loopbackio/loopback-next/compare/@loopback/example-passport-login@5.1.0...@loopback/example-passport-login@5.1.1) (2023-07-17)
7
15
 
8
16
  **Note:** Version bump only for package @loopback/example-passport-login
@@ -1,12 +1,12 @@
1
1
  import { UserIdentityService } from '@loopback/authentication';
2
2
  import { Provider } from '@loopback/core';
3
3
  import { Profile } from 'passport';
4
- import { Strategy as FacebookStrategy, StrategyOption } from 'passport-facebook';
4
+ import { Strategy as FacebookStrategy, StrategyOptions } from 'passport-facebook';
5
5
  import { User } from '../models';
6
6
  export declare class FacebookOauth implements Provider<FacebookStrategy> {
7
- facebookOptions: StrategyOption;
7
+ facebookOptions: StrategyOptions;
8
8
  userService: UserIdentityService<Profile, User>;
9
9
  strategy: FacebookStrategy;
10
- constructor(facebookOptions: StrategyOption, userService: UserIdentityService<Profile, User>);
10
+ constructor(facebookOptions: StrategyOptions, userService: UserIdentityService<Profile, User>);
11
11
  value(): FacebookStrategy;
12
12
  }
@@ -8,13 +8,13 @@ exports.FacebookOauth = void 0;
8
8
  const tslib_1 = require("tslib");
9
9
  const core_1 = require("@loopback/core");
10
10
  const passport_facebook_1 = require("passport-facebook");
11
- const types_1 = require("../authentication-strategies/types");
11
+ const authentication_strategies_1 = require("../authentication-strategies");
12
12
  const services_1 = require("../services");
13
13
  let FacebookOauth = exports.FacebookOauth = class FacebookOauth {
14
14
  constructor(facebookOptions, userService) {
15
15
  this.facebookOptions = facebookOptions;
16
16
  this.userService = userService;
17
- this.strategy = new passport_facebook_1.Strategy(this.facebookOptions, (0, types_1.verifyFunctionFactory)(this.userService));
17
+ this.strategy = new passport_facebook_1.Strategy(this.facebookOptions, (0, authentication_strategies_1.verifyFunctionFactory)(this.userService));
18
18
  }
19
19
  value() {
20
20
  return this.strategy;
@@ -1 +1 @@
1
- {"version":3,"file":"facebook.js","sourceRoot":"","sources":["../../src/authentication-strategy-providers/facebook.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,gDAAgD;AAChD,+CAA+C;AAC/C,gEAAgE;;;;AAGhE,yCAA0E;AAE1E,yDAA+E;AAC/E,8DAAyE;AAEzE,0CAAgD;AAGzC,IAAM,aAAa,2BAAnB,MAAM,aAAa;IAGxB,YAES,eAA+B,EAE/B,WAA+C;QAF/C,oBAAe,GAAf,eAAe,CAAgB;QAE/B,gBAAW,GAAX,WAAW,CAAoC;QAEtD,IAAI,CAAC,QAAQ,GAAG,IAAI,4BAAgB,CAClC,IAAI,CAAC,eAAe,EACpB,IAAA,6BAAqB,EAAC,IAAI,CAAC,WAAW,CAAC,CACxC,CAAC;IACJ,CAAC;IAED,KAAK;QACH,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;CACF,CAAA;wBAlBY,aAAa;IADzB,iBAAU,CAAC,QAAQ,CAAC,EAAC,KAAK,EAAE,mBAAY,CAAC,SAAS,EAAC,CAAC;IAKhD,mBAAA,IAAA,aAAM,EAAC,uBAAuB,CAAC,CAAA;IAE/B,mBAAA,IAAA,aAAM,EAAC,8BAAmB,CAAC,8BAA8B,CAAC,CAAA;;GANlD,aAAa,CAkBzB"}
1
+ {"version":3,"file":"facebook.js","sourceRoot":"","sources":["../../src/authentication-strategy-providers/facebook.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,gDAAgD;AAChD,+CAA+C;AAC/C,gEAAgE;;;;AAGhE,yCAA0E;AAE1E,yDAAgF;AAChF,4EAAmE;AAEnE,0CAAgD;AAGzC,IAAM,aAAa,2BAAnB,MAAM,aAAa;IAGxB,YAES,eAAgC,EAEhC,WAA+C;QAF/C,oBAAe,GAAf,eAAe,CAAiB;QAEhC,gBAAW,GAAX,WAAW,CAAoC;QAEtD,IAAI,CAAC,QAAQ,GAAG,IAAI,4BAAgB,CAClC,IAAI,CAAC,eAAe,EACpB,IAAA,iDAAqB,EAAC,IAAI,CAAC,WAAW,CAAC,CACxC,CAAC;IACJ,CAAC;IAED,KAAK;QACH,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;CACF,CAAA;wBAlBY,aAAa;IADzB,iBAAU,CAAC,QAAQ,CAAC,EAAC,KAAK,EAAE,mBAAY,CAAC,SAAS,EAAC,CAAC;IAKhD,mBAAA,IAAA,aAAM,EAAC,uBAAuB,CAAC,CAAA;IAE/B,mBAAA,IAAA,aAAM,EAAC,8BAAmB,CAAC,8BAA8B,CAAC,CAAA;;GANlD,aAAa,CAkBzB"}
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": "5.1.1",
4
+ "version": "5.1.2",
5
5
  "keywords": [
6
6
  "loopback",
7
7
  "LoopBack",
@@ -47,21 +47,21 @@
47
47
  "access": "public"
48
48
  },
49
49
  "dependencies": {
50
- "@loopback/authentication": "^10.1.1",
51
- "@loopback/authentication-passport": "^6.1.1",
52
- "@loopback/boot": "^6.1.1",
53
- "@loopback/core": "^5.1.1",
54
- "@loopback/mock-oauth2-provider": "^0.8.1",
55
- "@loopback/repository": "^6.1.1",
56
- "@loopback/rest": "^13.1.1",
57
- "@loopback/rest-crud": "^0.17.1",
58
- "@loopback/rest-explorer": "^6.1.1",
59
- "@loopback/security": "^0.10.1",
60
- "@loopback/service-proxy": "^6.1.1",
50
+ "@loopback/authentication": "^10.1.2",
51
+ "@loopback/authentication-passport": "^6.1.2",
52
+ "@loopback/boot": "^6.1.2",
53
+ "@loopback/core": "^5.1.2",
54
+ "@loopback/mock-oauth2-provider": "^0.8.2",
55
+ "@loopback/repository": "^6.1.2",
56
+ "@loopback/rest": "^13.1.2",
57
+ "@loopback/rest-crud": "^0.17.2",
58
+ "@loopback/rest-explorer": "^6.1.2",
59
+ "@loopback/security": "^0.10.2",
60
+ "@loopback/service-proxy": "^6.1.2",
61
61
  "@types/jsonwebtoken": "9.0.2",
62
- "@types/lodash": "^4.14.195",
62
+ "@types/lodash": "^4.14.197",
63
63
  "@types/passport": "^1.0.12",
64
- "@types/passport-facebook": "^2.1.11",
64
+ "@types/passport-facebook": "^3.0.0",
65
65
  "@types/passport-google-oauth": "^1.0.42",
66
66
  "@types/passport-google-oauth2": "^0.1.5",
67
67
  "@types/passport-http": "^0.3.9",
@@ -84,20 +84,20 @@
84
84
  "passport-oauth2": "^1.7.0",
85
85
  "passport-twitter": "1.0.4",
86
86
  "path": "^0.12.7",
87
- "tslib": "^2.6.0"
87
+ "tslib": "^2.6.1"
88
88
  },
89
89
  "devDependencies": {
90
- "@loopback/build": "^10.1.1",
91
- "@loopback/eslint-config": "^14.0.2",
92
- "@loopback/http-caching-proxy": "^5.1.1",
93
- "@loopback/testlab": "^6.1.1",
90
+ "@loopback/build": "^10.1.2",
91
+ "@loopback/eslint-config": "^14.0.3",
92
+ "@loopback/http-caching-proxy": "^5.1.2",
93
+ "@loopback/testlab": "^6.1.2",
94
94
  "@types/express": "^4.17.17",
95
- "@types/lodash": "^4.14.195",
96
- "@types/node": "^16.18.38",
95
+ "@types/lodash": "^4.14.197",
96
+ "@types/node": "^16.18.40",
97
97
  "axios": "^1.4.0",
98
- "eslint": "^8.45.0",
98
+ "eslint": "^8.47.0",
99
99
  "lodash": "^4.17.21",
100
100
  "typescript": "~5.1.6"
101
101
  },
102
- "gitHead": "be0c53e30bbe9edf7753c4fcd7ab3199f7cd3b8c"
102
+ "gitHead": "0e9d6114999bd4d53969071e49bec5f6680ae9ad"
103
103
  }
@@ -6,8 +6,8 @@
6
6
  import {UserIdentityService} from '@loopback/authentication';
7
7
  import {BindingScope, inject, injectable, Provider} from '@loopback/core';
8
8
  import {Profile} from 'passport';
9
- import {Strategy as FacebookStrategy, StrategyOption} from 'passport-facebook';
10
- import {verifyFunctionFactory} from '../authentication-strategies/types';
9
+ import {Strategy as FacebookStrategy, StrategyOptions} from 'passport-facebook';
10
+ import {verifyFunctionFactory} from '../authentication-strategies';
11
11
  import {User} from '../models';
12
12
  import {UserServiceBindings} from '../services';
13
13
 
@@ -17,7 +17,7 @@ export class FacebookOauth implements Provider<FacebookStrategy> {
17
17
 
18
18
  constructor(
19
19
  @inject('facebookOAuth2Options')
20
- public facebookOptions: StrategyOption,
20
+ public facebookOptions: StrategyOptions,
21
21
  @inject(UserServiceBindings.PASSPORT_USER_IDENTITY_SERVICE)
22
22
  public userService: UserIdentityService<Profile, User>,
23
23
  ) {