Skip to content

Commit 89c5151

Browse files
committed
Update version for authenticate API responses
This commits changes the serialization version from V_7_0_0 to v_6_6_0 for the authenticate API response now that the work to add the realm info in the response has been backported to 6.x in b515ec7 Relates #35648
1 parent c412ecd commit 89c5151

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/AuthenticateResponse.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public Authentication authentication() {
3131
@Override
3232
public void writeTo(StreamOutput out) throws IOException {
3333
super.writeTo(out);
34-
if (out.getVersion().before(Version.V_7_0_0)) {
34+
if (out.getVersion().before(Version.V_6_6_0)) {
3535
User.writeTo(authentication.getUser(), out);
3636
} else {
3737
authentication.writeTo(out);
@@ -41,7 +41,7 @@ public void writeTo(StreamOutput out) throws IOException {
4141
@Override
4242
public void readFrom(StreamInput in) throws IOException {
4343
super.readFrom(in);
44-
if (in.getVersion().before(Version.V_7_0_0)) {
44+
if (in.getVersion().before(Version.V_6_6_0)) {
4545
final User user = User.readFrom(in);
4646
final Authentication.RealmRef unknownRealm = new Authentication.RealmRef("__unknown", "__unknown", "__unknown");
4747
authentication = new Authentication(user, unknownRealm, unknownRealm);

0 commit comments

Comments
 (0)