Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/Nest/XPack/Security/Authenticate/AuthenticateResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ public interface IAuthenticateResponse : IResponse

[JsonProperty("username")]
string Username { get; }

[JsonProperty("authentication_realm")]
RealmInfo AuthenticationRealm { get; }

[JsonProperty("lookup_realm")]
RealmInfo LookupRealm { get; }
}

public class AuthenticateResponse : ResponseBase, IAuthenticateResponse
Expand All @@ -30,6 +36,20 @@ public class AuthenticateResponse : ResponseBase, IAuthenticateResponse
public IReadOnlyDictionary<string, object> Metadata { get; internal set; } = EmptyReadOnly<string, object>.Dictionary;

public IReadOnlyCollection<string> Roles { get; internal set; } = EmptyReadOnly<string>.Collection;

public string Username { get; internal set; }

public RealmInfo AuthenticationRealm { get; internal set; }

public RealmInfo LookupRealm { get; internal set; }
}

public class RealmInfo
{
[JsonProperty("name")]
public string Name { get; internal set; }

[JsonProperty("type")]
public string Type { get; internal set; }
}
}