-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes Short URL redirection for SAML login #1744
Conversation
Signed-off-by: Deepak Devarakonda <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1744 +/- ##
=======================================
Coverage 67.27% 67.27%
=======================================
Files 94 94
Lines 2408 2408
Branches 320 320
=======================================
Hits 1620 1620
Misses 711 711
Partials 77 77 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution, lets update the saml test cases to make sure this scenario is handled correctly with this change.
@devardee to add to @peternied's comment, could you please update the PR title/description to be more detailed? |
@peternied can you please guide me on what kind of testing needs to be added here ? @DarshitChanpura the linked GH issue is very descriptive, can I copy/paste from there ? |
I see there are end-to-end tests here, however, I am unable to run them locally, can the team pls help me on setting up my IDE, so that I can added new tests |
@devardee To run those tests:
You may also need to start the node_idp locally to. In the OpenSearch-Dashboards/plugins/security-dashboards-plugin run: |
I've made changes to the description. Feel free to correct if anything is missing. |
@peternied , @DarshitChanpura I have added IT. Please take a look |
Signed-off-by: Deepak Devarakonda <[email protected]>
Signed-off-by: Deepak Devarakonda <[email protected]>
Signed-off-by: Deepak Devarakonda <[email protected]>
Signed-off-by: Deepak Devarakonda <[email protected]>
the newly added test is failing in multi-auth test workflow 😔, can anyone please help me out on why that particular test is failing. Not able to understand the failure from logs :
|
@devardee I made some slight modifications to the test to first login, then to use
|
Signed-off-by: Deepak Devarakonda <[email protected]>
Signed-off-by: Deepak Devarakonda <[email protected]>
@cwperks , thanks for the help 😊. All the tests passed locally. Hope it pass in the github CI as well |
Signed-off-by: Deepak Devarakonda <[email protected]>
Hi Team, pls take a look, github ci has passed cc: @cwperks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks @devardee !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job!
Other maintains have been following up - great work @devardee
It would be awesome if this could make it into 2.12 |
Signed-off-by: Deepak Devarakonda <[email protected]> Co-authored-by: Stephen Crawford <[email protected]> Co-authored-by: Darshit Chanpura <[email protected]> (cherry picked from commit 4d7e5f3)
Signed-off-by: Deepak Devarakonda <[email protected]> Co-authored-by: Stephen Crawford <[email protected]> Co-authored-by: Darshit Chanpura <[email protected]> (cherry picked from commit 4d7e5f3) Co-authored-by: Deepak Devarakonda <[email protected]>
Description
Resolves a bug where SAML endpoints login flow was broken when attempted to login via short url.
Category
Bug fix
Why these changes are required?
To allow short urls to work successfully for SAML SSO logins.
What is the old behavior before changes and new behavior after changes?
Old: Short URL would throw 400 when try to initiate login for SAML endpoints
New: Short URL redirects to SAML login properly
Issues Resolved
Testing
[Please provide details of testing done: unit testing, integration testing and manual testing]
Check List
- [ ] New functionality has been documentedBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.
cc: @anijain-Amazon