Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Commit

Permalink
closes #436
Browse files Browse the repository at this point in the history
  • Loading branch information
leastprivilege committed Oct 28, 2016
1 parent 0e8c77d commit 9303d5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Host/Configuration/Users.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static List<InMemoryUser> Get()
var users = new List<InMemoryUser>
{
new InMemoryUser{Subject = "818727", Username = "alice", Password = "alice",
Claims = new Claim[]
Claims =
{
new Claim(JwtClaimTypes.Name, "Alice Smith"),
new Claim(JwtClaimTypes.GivenName, "Alice"),
Expand All @@ -31,7 +31,7 @@ public static List<InMemoryUser> Get()
}
},
new InMemoryUser{Subject = "88421113", Username = "bob", Password = "bob",
Claims = new Claim[]
Claims =
{
new Claim(JwtClaimTypes.Name, "Bob Smith"),
new Claim(JwtClaimTypes.GivenName, "Bob"),
Expand Down
3 changes: 2 additions & 1 deletion src/IdentityServer4/Services/InMemory/InMemoryUser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.


using IdentityModel;
using System.Collections.Generic;
using System.Security.Claims;

Expand Down Expand Up @@ -66,6 +67,6 @@ public class InMemoryUser
/// <value>
/// The claims.
/// </value>
public IEnumerable<Claim> Claims { get; set; } = new List<Claim>();
public ICollection<Claim> Claims { get; set; } = new HashSet<Claim>(new ClaimComparer());
}
}

0 comments on commit 9303d5e

Please sign in to comment.