Skip to content
This repository was archived by the owner on Dec 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #58 from wenz/57-domainnames
Browse files Browse the repository at this point in the history
  • Loading branch information
josephdecock authored Sep 22, 2024
2 parents 55387c2 + c4c0e7f commit c57b85c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/IdentityServerAspNetIdentity/SeedData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static void EnsureSeedData(WebApplication app)
alice = new ApplicationUser
{
UserName = "alice",
Email = "AliceSmith@email.com",
Email = "AliceSmith@example.com",
EmailConfirmed = true,
};
var result = userMgr.CreateAsync(alice, "Pass123$").Result;
Expand All @@ -37,7 +37,7 @@ public static void EnsureSeedData(WebApplication app)
new Claim(JwtClaimTypes.Name, "Alice Smith"),
new Claim(JwtClaimTypes.GivenName, "Alice"),
new Claim(JwtClaimTypes.FamilyName, "Smith"),
new Claim(JwtClaimTypes.WebSite, "http://alice.com"),
new Claim(JwtClaimTypes.WebSite, "http://alice.example.com"),
}).Result;
if (!result.Succeeded)
{
Expand All @@ -56,7 +56,7 @@ public static void EnsureSeedData(WebApplication app)
bob = new ApplicationUser
{
UserName = "bob",
Email = "BobSmith@email.com",
Email = "BobSmith@example.com",
EmailConfirmed = true
};
var result = userMgr.CreateAsync(bob, "Pass123$").Result;
Expand All @@ -69,7 +69,7 @@ public static void EnsureSeedData(WebApplication app)
new Claim(JwtClaimTypes.Name, "Bob Smith"),
new Claim(JwtClaimTypes.GivenName, "Bob"),
new Claim(JwtClaimTypes.FamilyName, "Smith"),
new Claim(JwtClaimTypes.WebSite, "http://bob.com"),
new Claim(JwtClaimTypes.WebSite, "http://bob.example.com"),
new Claim("location", "somewhere")
}).Result;
if (!result.Succeeded)
Expand Down
8 changes: 4 additions & 4 deletions src/IdentityServerEntityFramework/Pages/TestUsers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ public static List<TestUser> Users
new Claim(JwtClaimTypes.Name, "Alice Smith"),
new Claim(JwtClaimTypes.GivenName, "Alice"),
new Claim(JwtClaimTypes.FamilyName, "Smith"),
new Claim(JwtClaimTypes.Email, "AliceSmith@email.com"),
new Claim(JwtClaimTypes.Email, "AliceSmith@example.com"),
new Claim(JwtClaimTypes.EmailVerified, "true", ClaimValueTypes.Boolean),
new Claim(JwtClaimTypes.WebSite, "http://alice.com"),
new Claim(JwtClaimTypes.WebSite, "http://alice.example.com"),
new Claim(JwtClaimTypes.Address, JsonSerializer.Serialize(address), IdentityServerConstants.ClaimValueTypes.Json)
}
},
Expand All @@ -51,9 +51,9 @@ public static List<TestUser> Users
new Claim(JwtClaimTypes.Name, "Bob Smith"),
new Claim(JwtClaimTypes.GivenName, "Bob"),
new Claim(JwtClaimTypes.FamilyName, "Smith"),
new Claim(JwtClaimTypes.Email, "BobSmith@email.com"),
new Claim(JwtClaimTypes.Email, "BobSmith@example.com"),
new Claim(JwtClaimTypes.EmailVerified, "true", ClaimValueTypes.Boolean),
new Claim(JwtClaimTypes.WebSite, "http://bob.com"),
new Claim(JwtClaimTypes.WebSite, "http://bob.example.com"),
new Claim(JwtClaimTypes.Address, JsonSerializer.Serialize(address), IdentityServerConstants.ClaimValueTypes.Json)
}
}
Expand Down
8 changes: 4 additions & 4 deletions src/IdentityServerInMem/Pages/TestUsers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ public static List<TestUser> Users
new Claim(JwtClaimTypes.Name, "Alice Smith"),
new Claim(JwtClaimTypes.GivenName, "Alice"),
new Claim(JwtClaimTypes.FamilyName, "Smith"),
new Claim(JwtClaimTypes.Email, "AliceSmith@email.com"),
new Claim(JwtClaimTypes.Email, "AliceSmith@example.com"),
new Claim(JwtClaimTypes.EmailVerified, "true", ClaimValueTypes.Boolean),
new Claim(JwtClaimTypes.WebSite, "http://alice.com"),
new Claim(JwtClaimTypes.WebSite, "http://alice.example.com"),
new Claim(JwtClaimTypes.Address, JsonSerializer.Serialize(address), IdentityServerConstants.ClaimValueTypes.Json)
}
},
Expand All @@ -51,9 +51,9 @@ public static List<TestUser> Users
new Claim(JwtClaimTypes.Name, "Bob Smith"),
new Claim(JwtClaimTypes.GivenName, "Bob"),
new Claim(JwtClaimTypes.FamilyName, "Smith"),
new Claim(JwtClaimTypes.Email, "BobSmith@email.com"),
new Claim(JwtClaimTypes.Email, "BobSmith@example.com"),
new Claim(JwtClaimTypes.EmailVerified, "true", ClaimValueTypes.Boolean),
new Claim(JwtClaimTypes.WebSite, "http://bob.com"),
new Claim(JwtClaimTypes.WebSite, "http://bob.example.com"),
new Claim(JwtClaimTypes.Address, JsonSerializer.Serialize(address), IdentityServerConstants.ClaimValueTypes.Json)
}
}
Expand Down

0 comments on commit c57b85c

Please sign in to comment.