Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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 @@ -21,6 +21,8 @@ public static WebApplication ConfigureServices(this WebApplicationBuilder builde
// see https://docs.duendesoftware.com/identityserver/v6/fundamentals/resources/api_scopes
options.EmitStaticAudienceClaim = true;
options.PushedAuthorization.AllowUnregisteredPushedRedirectUris = true;

options.Preview.StrictClientAssertionAudienceValidation = true;
})
.AddTestUsers(TestUsers.Users);

Expand Down Expand Up @@ -68,4 +70,4 @@ public static WebApplication ConfigurePipeline(this WebApplication app)

return app;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Duende.IdentityServer" Version="7.1.0" />
<PackageReference Include="Duende.IdentityServer" Version="7.2.0" />
<PackageReference Include="Serilog.AspNetCore" Version="8.0.3" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ static string CreateClientToken(SigningCredentials credential, string clientId,
credential
);

token.Header[JwtClaimTypes.TokenType] = "client-authentication+jwt";
Comment thread
maartenba marked this conversation as resolved.

var tokenHandler = new JwtSecurityTokenHandler();
var clientToken = tokenHandler.WriteToken(token);
"\n\nClient Authentication Token:".ConsoleGreen();
Expand All @@ -94,4 +96,4 @@ static async Task CallServiceAsync(string token)

"\n\nService claims:".ConsoleGreen();
Console.WriteLine(response.PrettyPrintJson());
}
}
2 changes: 2 additions & 0 deletions IdentityServer/v7/Basics/MvcJarJwt/src/AssertionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ public string CreateClientToken()
new SigningCredentials(new JsonWebKey(key), "RS256")
);

token.Header[JwtClaimTypes.TokenType] = "client-authentication+jwt";
Comment thread
maartenba marked this conversation as resolved.

var tokenHandler = new JwtSecurityTokenHandler();
tokenHandler.OutboundClaimTypeMap.Clear();

Expand Down