@plusscommunities/pluss-core-aws 2.0.2-auth.0 → 2.0.4-auth.0

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.
@@ -1,5 +1,6 @@
1
1
  const Auth0Strategy = require("./auth0/Strategy");
2
2
  const CognitoStrategy = require("./cognito/Strategy");
3
+ const BoltonClarkeStrategy = require("./boltonclarke/Strategy");
3
4
  const { getConfig } = require("../../../config");
4
5
 
5
6
  class AuthenticationContext {
@@ -10,6 +11,9 @@ class AuthenticationContext {
10
11
  case "auth0":
11
12
  AuthenticationContext.strategy = new Auth0Strategy();
12
13
  break;
14
+ case "boltonclarke":
15
+ AuthenticationContext.strategy = new BoltonClarkeStrategy();
16
+ break;
13
17
  case "cognito":
14
18
  AuthenticationContext.strategy = new CognitoStrategy();
15
19
  break;
@@ -1,4 +1,5 @@
1
1
  const decodeAccessToken = require("./decodeAccessToken");
2
+ const { getConfig } = require("../../../../../config");
2
3
 
3
4
  // Function to validate the token and extract user information
4
5
  const getSessionUser = async (token) => {
@@ -0,0 +1,10 @@
1
+ // auth0Strategy.js
2
+ const Auth0Strategy = require("../auth0/Strategy");
3
+
4
+ class BoltonClarkeStrategy extends Auth0Strategy {
5
+ constructor() {
6
+ super();
7
+ }
8
+ }
9
+
10
+ module.exports = BoltonClarkeStrategy;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plusscommunities/pluss-core-aws",
3
- "version": "2.0.2-auth.0",
3
+ "version": "2.0.4-auth.0",
4
4
  "description": "Core extension package for Pluss Communities platform",
5
5
  "scripts": {
6
6
  "betapatch": "npm version prepatch --preid=beta",