Skip to content
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

Use non-deprecated Kibana SAML callback URL in tests #98882

Merged
merged 3 commits into from
Oct 12, 2023
Merged

Use non-deprecated Kibana SAML callback URL in tests #98882

merged 3 commits into from
Oct 12, 2023

Conversation

rodrigc
Copy link
Contributor

@rodrigc rodrigc commented Aug 25, 2023

In https://github.com/elastic/kibana/blob/b33effa182bcb7c9620c5435ab252d8067732655/x-pack/plugins/security/server/routes/authentication/saml.ts#L27

/api/security/saml/callback is the correct URL,
while /api/security/v1/saml is the deprecated URL.

See also: elastic/kibana#81733

Fixes: #99985

@tlrx tlrx added the :Security/Authentication Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc) label Sep 7, 2023
@elasticsearchmachine elasticsearchmachine added the Team:Security Meta label for security team label Sep 7, 2023
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-security (Team:Security)

In https://github.com/elastic/kibana/blob/b33effa182bcb7c9620c5435ab252d8067732655/x-pack/plugins/security/server/routes/authentication/saml.ts#L27

/api/security/saml/callback is the correct URL,
while /api/security/v1/saml is the deprecated URL.

See also: elastic/kibana#81733

Signed-off-by: Craig Rodrigues <rodrigc@crodrigues.org>
@gwbrown
Copy link
Contributor

gwbrown commented Oct 12, 2023

@elasticmachine test this please

@gwbrown gwbrown self-requested a review October 12, 2023 15:41
@gwbrown gwbrown self-assigned this Oct 12, 2023
@gwbrown gwbrown added v8.12.0 >test Issues or PRs that are addressing/adding tests labels Oct 12, 2023
@gwbrown
Copy link
Contributor

gwbrown commented Oct 12, 2023

@elasticmachine update branch

@gwbrown
Copy link
Contributor

gwbrown commented Oct 12, 2023

@elasticmachine test this please

Our tooling doesn't like slashes in these summary fields, so I adjusted the name of the patch slightly to avoid them.
@gwbrown
Copy link
Contributor

gwbrown commented Oct 12, 2023

@elasticmachine test this please

@gwbrown gwbrown changed the title Use non-deprecated URL: /api/security/callback/saml Use non-deprecated Kibana SAML callback URL in tests Oct 12, 2023
@gwbrown gwbrown merged commit c1c8d1e into elastic:main Oct 12, 2023
@rodrigc rodrigc deleted the saml-fix-2 branch October 12, 2023 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Security/Authentication Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc) Team:Security Meta label for security team >test Issues or PRs that are addressing/adding tests v8.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unit test should replace /api/security/v1/saml with /api/security/saml/callback
5 participants