@boxyhq/saml-jackson 0.1.3-beta.85 → 0.1.4-beta.88
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/package.json +1 -1
- package/src/controller/oauth.js +10 -4
package/package.json
CHANGED
package/src/controller/oauth.js
CHANGED
@@ -28,10 +28,16 @@ const extractBearerToken = (req) => {
|
|
28
28
|
function getEncodedClientId(client_id) {
|
29
29
|
try {
|
30
30
|
const sp = new URLSearchParams(client_id);
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
31
|
+
const tenant = sp.get('tenant');
|
32
|
+
const product = sp.get('product');
|
33
|
+
if (tenant && product) {
|
34
|
+
return {
|
35
|
+
tenant: sp.get('tenant'),
|
36
|
+
product: sp.get('product'),
|
37
|
+
};
|
38
|
+
}
|
39
|
+
|
40
|
+
return null;
|
35
41
|
} catch (err) {
|
36
42
|
return null;
|
37
43
|
}
|