Skip to content

Commit 711b326

Browse files
committed
Update response
1 parent 5ce3047 commit 711b326

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

src/Nest/XPack/Security/User/GetUserAccessToken/GetUserAccessTokenResponse.cs

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
33
// See the LICENSE file in the project root for more information
44

5+
using System.Collections.Generic;
56
using System.Runtime.Serialization;
7+
using Elasticsearch.Net;
68

79
namespace Nest
810
{
@@ -24,7 +26,7 @@ public class GetUserAccessTokenResponse : ResponseBase
2426
public Authentication Authentication { get; set; }
2527
}
2628

27-
public class Authentication : ResponseBase
29+
public class Authentication
2830
{
2931
[DataMember(Name = "email")]
3032
public string Email { get; internal set; }
@@ -44,12 +46,21 @@ public class Authentication : ResponseBase
4446
public string Username { get; internal set; }
4547

4648
[DataMember(Name = "authentication_realm")]
47-
public RealmInfo AuthenticationRealm { get; internal set; }
49+
public AuthenticationRealmInfo AuthenticationRealm { get; internal set; }
4850

4951
[DataMember(Name = "lookup_realm")]
50-
public RealmInfo LookupRealm { get; internal set; }
52+
public AuthenticationRealmInfo LookupRealm { get; internal set; }
5153

5254
[DataMember(Name = "authentication_type")]
5355
public string AuthenticationType { get; internal set; }
5456
}
57+
58+
public class AuthenticationRealmInfo
59+
{
60+
[DataMember(Name = "name")]
61+
public string Name { get; internal set; }
62+
63+
[DataMember(Name = "type")]
64+
public string Type { get; internal set; }
65+
}
5566
}

0 commit comments

Comments
 (0)