Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public KeycloakAuthenticationOptions()
ClaimActions.MapJsonKey(ClaimTypes.NameIdentifier, "sub");
ClaimActions.MapJsonKey(ClaimTypes.Name, "name");
ClaimActions.MapJsonKey(ClaimTypes.GivenName, "given_name");
ClaimActions.MapJsonKey(ClaimTypes.Surname, "family_name");
ClaimActions.MapJsonKey(ClaimTypes.Role, "roles");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ protected internal override void RegisterAuthentication(AuthenticationBuilder bu
[InlineData(ClaimTypes.NameIdentifier, "995c1500-0dca-495e-ba72-2499d370d181")]
[InlineData(ClaimTypes.Email, "[email protected]")]
[InlineData(ClaimTypes.GivenName, "John")]
[InlineData(ClaimTypes.Surname, "Smith")]
[InlineData(ClaimTypes.Role, "admin")]
[InlineData(ClaimTypes.Name, "John Smith")]
public async Task Can_Sign_In_Using_Keycloak_BaseAddress(string claimType, string claimValue)
Expand All @@ -44,6 +45,7 @@ static void ConfigureServices(IServiceCollection services)
[InlineData(null, ClaimTypes.NameIdentifier, "995c1500-0dca-495e-ba72-2499d370d181")]
[InlineData(null, ClaimTypes.Email, "[email protected]")]
[InlineData(null, ClaimTypes.GivenName, "John")]
[InlineData(null, ClaimTypes.Surname, "Smith")]
[InlineData(null, ClaimTypes.Role, "admin")]
[InlineData(null, ClaimTypes.Name, "John Smith")]
[InlineData("17.0", ClaimTypes.NameIdentifier, "995c1500-0dca-495e-ba72-2499d370d181")]
Expand Down Expand Up @@ -84,6 +86,7 @@ void ConfigureServices(IServiceCollection services)
[InlineData(ClaimTypes.NameIdentifier, "995c1500-0dca-495e-ba72-2499d370d181")]
[InlineData(ClaimTypes.Email, "[email protected]")]
[InlineData(ClaimTypes.GivenName, "John")]
[InlineData(ClaimTypes.Surname, "Smith")]
[InlineData(ClaimTypes.Role, "admin")]
[InlineData(ClaimTypes.Name, "John Smith")]
public async Task Can_Sign_In_Using_Keycloak_Public_AccessType(string claimType, string claimValue)
Expand Down
Loading