|
|
|
@ -274,17 +274,17 @@ namespace Volo.Abp.IdentityServer.Clients |
|
|
|
Properties.Clear(); |
|
|
|
} |
|
|
|
|
|
|
|
public virtual void RemoveProperty(string key, string value) |
|
|
|
public virtual void RemoveProperty(string key) |
|
|
|
{ |
|
|
|
Properties.RemoveAll(c => c.Value == value && c.Key == key); |
|
|
|
Properties.RemoveAll(c => c.Key == key); |
|
|
|
} |
|
|
|
|
|
|
|
public virtual ClientProperty FindProperty(string key, string value) |
|
|
|
public virtual ClientProperty FindProperty(string key) |
|
|
|
{ |
|
|
|
return Properties.FirstOrDefault(c => c.Key == key && c.Value == value); |
|
|
|
return Properties.FirstOrDefault(c => c.Key == key); |
|
|
|
} |
|
|
|
|
|
|
|
public virtual void AddClaim([NotNull] string value, string type) |
|
|
|
public virtual void AddClaim([NotNull] string type, [NotNull] string value) |
|
|
|
{ |
|
|
|
Claims.Add(new ClientClaim(Id, type, value)); |
|
|
|
} |
|
|
|
@ -294,12 +294,22 @@ namespace Volo.Abp.IdentityServer.Clients |
|
|
|
Claims.Clear(); |
|
|
|
} |
|
|
|
|
|
|
|
public virtual void RemoveClaim(string value, string type) |
|
|
|
public virtual void RemoveClaim(string type) |
|
|
|
{ |
|
|
|
Claims.RemoveAll(c => c.Value == value && c.Type == type); |
|
|
|
Claims.RemoveAll(c => c.Type == type); |
|
|
|
} |
|
|
|
|
|
|
|
public virtual ClientClaim FindClaim(string value, string type) |
|
|
|
public virtual void RemoveClaim(string type, string value) |
|
|
|
{ |
|
|
|
Claims.RemoveAll(c => c.Type == type && c.Value == value); |
|
|
|
} |
|
|
|
|
|
|
|
public virtual List<ClientClaim> FindClaims(string type) |
|
|
|
{ |
|
|
|
return Claims.Where(c => c.Type == type).ToList(); |
|
|
|
} |
|
|
|
|
|
|
|
public virtual ClientClaim FindClaim(string type, string value) |
|
|
|
{ |
|
|
|
return Claims.FirstOrDefault(c => c.Type == type && c.Value == value); |
|
|
|
} |
|
|
|
|