@boxyhq/saml-jackson 0.1.5-beta.105 → 0.1.5-beta.109
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.
@@ -0,0 +1,27 @@
|
|
1
|
+
---
|
2
|
+
name: Bug report
|
3
|
+
about: Report any issues with the platform
|
4
|
+
title: ""
|
5
|
+
labels: bug
|
6
|
+
assignees: ""
|
7
|
+
---
|
8
|
+
|
9
|
+
Found a bug? Please fill out the sections below. 👍
|
10
|
+
|
11
|
+
### Issue Summary
|
12
|
+
|
13
|
+
A summary of the issue. This needs to be a clear detailed-rich summary.
|
14
|
+
|
15
|
+
### Steps to Reproduce
|
16
|
+
|
17
|
+
1. (for example) Went to ...
|
18
|
+
2. Clicked on...
|
19
|
+
3. ...
|
20
|
+
|
21
|
+
Any other relevant information. For example, why do you consider this a bug and what did you expect to happen instead?
|
22
|
+
|
23
|
+
### Technical details
|
24
|
+
|
25
|
+
- Browser version: You can use https://www.whatsmybrowser.org/ to find this out.
|
26
|
+
- Node.js version
|
27
|
+
- Anything else that you think could be an issue.
|
@@ -0,0 +1,43 @@
|
|
1
|
+
---
|
2
|
+
name: Feature request
|
3
|
+
about: Suggest a feature or idea
|
4
|
+
title: ""
|
5
|
+
labels: enhancement
|
6
|
+
assignees: ""
|
7
|
+
---
|
8
|
+
|
9
|
+
> Please check if your Feature Request has not been already raised in the [Discussions Tab](https://github.com/boxyhq/jackson/discussions), as we would like to reduce duplicates. If it has been already raised, simply upvote it 🔼.
|
10
|
+
|
11
|
+
### Is your proposal related to a problem?
|
12
|
+
|
13
|
+
<!--
|
14
|
+
Provide a clear and concise description of what the problem is.
|
15
|
+
For example, "I'm always frustrated when..."
|
16
|
+
-->
|
17
|
+
|
18
|
+
(Write your answer here.)
|
19
|
+
|
20
|
+
### Describe the solution you'd like
|
21
|
+
|
22
|
+
<!--
|
23
|
+
Provide a clear and concise description of what you want to happen.
|
24
|
+
-->
|
25
|
+
|
26
|
+
(Describe your proposed solution here.)
|
27
|
+
|
28
|
+
### Describe alternatives you've considered
|
29
|
+
|
30
|
+
<!--
|
31
|
+
Let us know about other solutions you've tried or researched.
|
32
|
+
-->
|
33
|
+
|
34
|
+
(Write your answer here.)
|
35
|
+
|
36
|
+
### Additional context
|
37
|
+
|
38
|
+
<!--
|
39
|
+
Is there anything else you can add about the proposal?
|
40
|
+
You might want to link to related issues here, if you haven't already.
|
41
|
+
-->
|
42
|
+
|
43
|
+
(Write your answer here.)
|
@@ -0,0 +1,31 @@
|
|
1
|
+
## What does this PR do?
|
2
|
+
|
3
|
+
<!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. -->
|
4
|
+
|
5
|
+
Fixes # (issue)
|
6
|
+
|
7
|
+
## Type of change
|
8
|
+
|
9
|
+
<!-- Please delete options that are not relevant. -->
|
10
|
+
|
11
|
+
- [ ] Bug fix (non-breaking change which fixes an issue)
|
12
|
+
- [ ] New feature (non-breaking change which adds functionality)
|
13
|
+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
|
14
|
+
- [ ] This change requires a documentation update
|
15
|
+
|
16
|
+
## How should this be tested?
|
17
|
+
|
18
|
+
<!-- Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration -->
|
19
|
+
|
20
|
+
- [ ] Test A
|
21
|
+
- [ ] Test B
|
22
|
+
|
23
|
+
## Checklist:
|
24
|
+
|
25
|
+
- [ ] My code follows the style guidelines of this project
|
26
|
+
- [ ] I have performed a self-review of my own code and corrected any misspellings
|
27
|
+
- [ ] I have commented my code, particularly in hard-to-understand areas
|
28
|
+
- [ ] I have made corresponding changes to the documentation
|
29
|
+
- [ ] My changes generate no new warnings
|
30
|
+
- [ ] I have added tests that prove my fix is effective or that my feature works
|
31
|
+
- [ ] New and existing unit tests pass locally with my changes
|
package/README.md
CHANGED
@@ -287,7 +287,8 @@ Please try to create bug reports that are:
|
|
287
287
|
|
288
288
|
## Support
|
289
289
|
Reach out to the maintainer at one of the following places:
|
290
|
-
|
290
|
+
|
291
|
+
- [GitHub Discussions](https://github.com/boxyhq/jackson/discussions)
|
291
292
|
- [GitHub Issues](https://github.com/boxyhq/jackson/issues)
|
292
293
|
- The email which is located [in GitHub profile](https://github.com/deepakprabhakara)
|
293
294
|
|
package/package.json
CHANGED
package/src/saml/saml.js
CHANGED
@@ -141,12 +141,20 @@ module.exports = {
|
|
141
141
|
let X509Certificate = null;
|
142
142
|
let ssoPostUrl = null;
|
143
143
|
let ssoRedirectUrl = null;
|
144
|
+
let loginType = 'idp';
|
144
145
|
|
145
|
-
|
146
|
-
|
146
|
+
let ssoDes = rambda.pathOr(
|
147
|
+
null,
|
147
148
|
'EntityDescriptor.IDPSSODescriptor',
|
148
149
|
res
|
149
150
|
);
|
151
|
+
if (!ssoDes) {
|
152
|
+
ssoDes = rambda.pathOr([], 'EntityDescriptor.SPSSODescriptor', res);
|
153
|
+
if (!ssoDes) {
|
154
|
+
loginType = 'sp';
|
155
|
+
}
|
156
|
+
}
|
157
|
+
|
150
158
|
for (const ssoDesRec of ssoDes) {
|
151
159
|
const keyDes = ssoDesRec['KeyDescriptor'];
|
152
160
|
for (const keyDesRec of keyDes) {
|
@@ -157,7 +165,10 @@ module.exports = {
|
|
157
165
|
}
|
158
166
|
}
|
159
167
|
|
160
|
-
const ssoSvc =
|
168
|
+
const ssoSvc =
|
169
|
+
ssoDesRec['SingleSignOnService'] ||
|
170
|
+
ssoDesRec['AssertionConsumerService'] ||
|
171
|
+
[];
|
161
172
|
for (const ssoSvcRec of ssoSvc) {
|
162
173
|
if (
|
163
174
|
rambda.pathOr('', '$.Binding', ssoSvcRec).endsWith('HTTP-POST')
|
@@ -188,6 +199,7 @@ module.exports = {
|
|
188
199
|
if (ssoRedirectUrl) {
|
189
200
|
ret.sso.redirectUrl = ssoRedirectUrl;
|
190
201
|
}
|
202
|
+
ret.loginType = loginType;
|
191
203
|
|
192
204
|
resolve(ret);
|
193
205
|
}
|