Skip to content

Commit e639e61

Browse files
committed
Add realm information for Authenticate API (#3725)
Add realm information for Authenticate API
1 parent 8d51f6a commit e639e61

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/Nest/XPack/Security/Authenticate/AuthenticateResponse.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33

44
namespace Nest
55
{
6+
public class RealmInfo
7+
{
8+
[DataMember(Name = "name")]
9+
public string Name { get; internal set; }
10+
11+
[DataMember(Name = "type")]
12+
public string Type { get; internal set; }
13+
}
14+
615
public class AuthenticateResponse : ResponseBase
716
{
817
[DataMember(Name = "email")]
@@ -21,5 +30,11 @@ public class AuthenticateResponse : ResponseBase
2130

2231
[DataMember(Name = "username")]
2332
public string Username { get; internal set; }
33+
34+
[DataMember(Name = "authentication_realm")]
35+
public RealmInfo AuthenticationRealm { get; internal set; }
36+
37+
[DataMember(Name = "lookup_realm")]
38+
public RealmInfo LookupRealm { get; internal set; }
2439
}
2540
}

0 commit comments

Comments
 (0)