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

token header name "X-Casssandra-Token" -> "Token" #607

Merged
merged 12 commits into from
Nov 2, 2023
Merged

Conversation

Yuqi-Du
Copy link
Contributor

@Yuqi-Du Yuqi-Du commented Oct 31, 2023

What this PR does:
change token header name, "X-Casssandra-Token" -> "Token"
also supports X-Cassandra-Token for backward compatibility

Which issue(s) this PR fixes:
Fixes #569

Checklist

  • Changes manually tested
  • Automated Tests added/updated
  • Documentation added/updated
  • CLA Signed: DataStax CLA

@Yuqi-Du Yuqi-Du requested a review from a team as a code owner October 31, 2023 17:54
@Yuqi-Du Yuqi-Du closed this Nov 1, 2023
@Yuqi-Du Yuqi-Du reopened this Nov 1, 2023
@johnsmartco johnsmartco self-requested a review November 2, 2023 17:37
@Yuqi-Du Yuqi-Du merged commit b2f19d3 into main Nov 2, 2023
3 checks passed
@Yuqi-Du Yuqi-Du deleted the rename_token branch November 2, 2023 19:10
String AUTHENTICATION_TOKEN_HEADER_NAME = "Token";

/** JSON API also supports X-Cassandra-Token for backward compatibility. */
String DEPRECATED_AUTHENTICATION_TOKEN_HEADER_NAME = "X-Cassandra-Token";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have a test that tests the deprecated header still works? It looks like all the tests just use the AUTHENTICATION_TOKEN_HEADER_NAME

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace X-Cassandra-Token with Token
4 participants