From 32c26b9430f1d7085aa58eb1c8b9cd05e9213c2f Mon Sep 17 00:00:00 2001 From: Luk Vermeulen Date: Wed, 29 Jul 2020 12:42:37 +0200 Subject: [PATCH] add missing properties to User --- src/Keycloak.Net/Models/Users/User.cs | 20 ++++++++++++++++++++ src/Keycloak.Net/Models/Users/UserConsent.cs | 18 ++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 src/Keycloak.Net/Models/Users/UserConsent.cs diff --git a/src/Keycloak.Net/Models/Users/User.cs b/src/Keycloak.Net/Models/Users/User.cs index 24d2837f..5b84bb82 100644 --- a/src/Keycloak.Net/Models/Users/User.cs +++ b/src/Keycloak.Net/Models/Users/User.cs @@ -34,5 +34,25 @@ public class User public UserAccess Access { get; set; } [JsonProperty("attributes")] public Dictionary> Attributes { get; set; } + [JsonProperty("clientConsents")] + public IEnumerable ClientConsents { get; set; } + [JsonProperty("clientRoles")] + public IDictionary ClientRoles { get; set; } + [JsonProperty("credentials")] + public IEnumerable Credentials { get; set; } + [JsonProperty("federatedIdentities")] + public IEnumerable FederatedIdentities { get; set; } + [JsonProperty("federationLink")] + public string FederationLink { get; set; } + [JsonProperty("groups")] + public IEnumerable Groups { get; set; } + [JsonProperty("origin")] + public string Origin { get; set; } + [JsonProperty("realmRoles")] + public IEnumerable RealmRoles { get; set; } + [JsonProperty("self")] + public string Self { get; set; } + [JsonProperty("serviceAccountClientId")] + public string ServiceAccountClientId { get; set; } } } diff --git a/src/Keycloak.Net/Models/Users/UserConsent.cs b/src/Keycloak.Net/Models/Users/UserConsent.cs new file mode 100644 index 00000000..af22c980 --- /dev/null +++ b/src/Keycloak.Net/Models/Users/UserConsent.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Keycloak.Net.Models.Users +{ + public class UserConsent + { + [JsonProperty("clientId")] + public string ClientId { get; set; } + [JsonProperty("grantedClientScopes")] + public IEnumerable GrantedClientScopes { get; set; } + [JsonProperty("createdDate")] + public long? CreatedDate { get; set; } + [JsonProperty("lastUpdatedDate")] + public long? LastUpdatedDate { get; set; } + } +}