2
2
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
3
// See the LICENSE file in the project root for more information
4
4
5
+ using System . Collections . Generic ;
5
6
using System . Runtime . Serialization ;
7
+ using Elasticsearch . Net ;
6
8
7
9
namespace Nest
8
10
{
@@ -24,7 +26,7 @@ public class GetUserAccessTokenResponse : ResponseBase
24
26
public Authentication Authentication { get ; set ; }
25
27
}
26
28
27
- public class Authentication : ResponseBase
29
+ public class Authentication
28
30
{
29
31
[ DataMember ( Name = "email" ) ]
30
32
public string Email { get ; internal set ; }
@@ -44,12 +46,21 @@ public class Authentication : ResponseBase
44
46
public string Username { get ; internal set ; }
45
47
46
48
[ DataMember ( Name = "authentication_realm" ) ]
47
- public RealmInfo AuthenticationRealm { get ; internal set ; }
49
+ public AuthenticationRealmInfo AuthenticationRealm { get ; internal set ; }
48
50
49
51
[ DataMember ( Name = "lookup_realm" ) ]
50
- public RealmInfo LookupRealm { get ; internal set ; }
52
+ public AuthenticationRealmInfo LookupRealm { get ; internal set ; }
51
53
52
54
[ DataMember ( Name = "authentication_type" ) ]
53
55
public string AuthenticationType { get ; internal set ; }
54
56
}
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
+ }
55
66
}
0 commit comments