@carisls/sso-standard 1.0.2 → 1.0.4
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/cjs/index.cjs +4 -0
- package/esm/index.js +4 -0
- package/package.json +2 -2
package/cjs/index.cjs
CHANGED
|
@@ -32,8 +32,12 @@ const router = (options) => {
|
|
|
32
32
|
if (!options)
|
|
33
33
|
throw Error('You need to set options parameter');
|
|
34
34
|
|
|
35
|
+
// Extract providers
|
|
35
36
|
const providers = options.providers?.split ? options.providers.split(',').map(i => ({ ssoUrl: i })) : options.providers;
|
|
36
37
|
|
|
38
|
+
// Pick the first provider
|
|
39
|
+
providers.splice(1);
|
|
40
|
+
|
|
37
41
|
if (!options.providers)
|
|
38
42
|
throw Error('providers is always required');
|
|
39
43
|
|
package/esm/index.js
CHANGED
|
@@ -33,8 +33,12 @@ const router = (options) => {
|
|
|
33
33
|
if (!options)
|
|
34
34
|
throw Error('You need to set options parameter');
|
|
35
35
|
|
|
36
|
+
// Extract providers
|
|
36
37
|
const providers = options.providers?.split ? options.providers.split(',').map(i => ({ ssoUrl: i })) : options.providers;
|
|
37
38
|
|
|
39
|
+
// Pick the first provider
|
|
40
|
+
providers.splice(1);
|
|
41
|
+
|
|
38
42
|
if (!options.providers)
|
|
39
43
|
throw Error('providers is always required');
|
|
40
44
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carisls/sso-standard",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "A middleware implementing standard flow SSO",
|
|
5
5
|
"main": "cjs/index.cjs",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"author": "Mihovil Strujic <mstrujic@carisls.com>",
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@carisls/sso-core": "
|
|
28
|
+
"@carisls/sso-core": "1.0.1",
|
|
29
29
|
"cookie-parser": "^1.4.6",
|
|
30
30
|
"express": "^4.19.2"
|
|
31
31
|
},
|