@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;
|
package/package.json
CHANGED