-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Preserve URL fragment during SAML handshake. #44513
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
71f2980
Preserve URL fragment during SAML handshake.
azasypkin c891059
Merge branch 'master' into issue-18392-saml-hash
azasypkin a3e32fd
Merge branch 'master' into issue-18392-saml-hash
azasypkin ca8942a
Merge branch 'master' into issue-18392-saml-hash
azasypkin 19e6fb3
Merge branch 'master' into issue-18392-saml-hash
azasypkin 1f7faff
Sync with upstream and use route URLs that are relative to root. Use …
azasypkin 017f7bb
Merge branch 'master' into issue-18392-saml-hash
azasypkin f564987
Review#1: get rid of `authc` part in SAML API routes.
azasypkin 776ca98
Review#1: capture basepath and space ID.
azasypkin 8270f19
Review#1: migrate to alternative solution to store full URL in the co…
azasypkin 6febc2c
Review#1: use server base path instead of the request scoped one for …
azasypkin 432d7bb
Merge branch 'master' into issue-18392-saml-hash
azasypkin ff90be4
Properly handle max redirect URL size.
azasypkin 184c977
Merge branch 'master' into issue-18392-saml-hash
azasypkin 3302508
Merge branch 'master' into issue-18392-saml-hash
azasypkin 50fada9
Update tests.
azasypkin 170ee51
Merge branch 'master' into issue-18392-saml-hash
elasticmachine a38be2e
Merge branch 'master' into issue-18392-saml-hash
elasticmachine a361167
Merge branch 'master' into issue-18392-saml-hash
azasypkin 2b88f7b
Use `serverBasePath` provided by the core instead of the one provided…
azasypkin dca6431
Apply suggestions from code review
azasypkin 0a86b77
Merge branch 'master' into issue-18392-saml-hash
azasypkin 8b51a1c
Make sure redirect URL fragment always starts with `#`.
azasypkin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
x-pack/plugins/security/server/authentication/index.mock.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { Authentication } from '.'; | ||
|
||
export const authenticationMock = { | ||
create: (): jest.Mocked<Authentication> => ({ | ||
login: jest.fn(), | ||
createAPIKey: jest.fn(), | ||
getCurrentUser: jest.fn(), | ||
invalidateAPIKey: jest.fn(), | ||
isAuthenticated: jest.fn(), | ||
logout: jest.fn(), | ||
}), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
note: if we still need this we'll include that into NP blockers for Security plugin.
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.
Included as blocker, for now we agreed with Platform to provide this through legacy API shim and hopefully get support for "lightweight" apps by 8.0 so that we don't need to set CSP manually anymore.