Skip to content

Commit

Permalink
add missing properties to User
Browse files Browse the repository at this point in the history
  • Loading branch information
lvermeulen committed Jul 29, 2020
1 parent 25a663d commit 32c26b9
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/Keycloak.Net/Models/Users/User.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,25 @@ public class User
public UserAccess Access { get; set; }
[JsonProperty("attributes")]
public Dictionary<string, IEnumerable<string>> Attributes { get; set; }
[JsonProperty("clientConsents")]
public IEnumerable<UserConsent> ClientConsents { get; set; }
[JsonProperty("clientRoles")]
public IDictionary<string, object> ClientRoles { get; set; }
[JsonProperty("credentials")]
public IEnumerable<Credentials> Credentials { get; set; }
[JsonProperty("federatedIdentities")]
public IEnumerable<FederatedIdentity> FederatedIdentities { get; set; }
[JsonProperty("federationLink")]
public string FederationLink { get; set; }
[JsonProperty("groups")]
public IEnumerable<string> Groups { get; set; }
[JsonProperty("origin")]
public string Origin { get; set; }
[JsonProperty("realmRoles")]
public IEnumerable<string> RealmRoles { get; set; }
[JsonProperty("self")]
public string Self { get; set; }
[JsonProperty("serviceAccountClientId")]
public string ServiceAccountClientId { get; set; }
}
}
18 changes: 18 additions & 0 deletions src/Keycloak.Net/Models/Users/UserConsent.cs
Original file line number Diff line number Diff line change
@@ -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<string> GrantedClientScopes { get; set; }
[JsonProperty("createdDate")]
public long? CreatedDate { get; set; }
[JsonProperty("lastUpdatedDate")]
public long? LastUpdatedDate { get; set; }
}
}

0 comments on commit 32c26b9

Please sign in to comment.