DuendeSoftware / Samples

Samples for our Products
Other
225 stars 269 forks source link

Modernize code for v7/basics: IdentityServerHost, SimpleAPI and MVC client #192

Closed RolandGuijt closed 1 month ago

RolandGuijt commented 1 month ago

191

josephdecock commented 1 month ago

Might be scope creep, but while we are touching all the samples anyway, maybe we should also disable telemetry.

RolandGuijt commented 1 month ago

@josephdecock Sure. Can you give me a link or show some code snippet that shows how to do that?

josephdecock commented 1 month ago

Sure, we just enable this flag in the OIDC handler: https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.authentication.openidconnect.openidconnectoptions.disabletelemetry?view=aspnetcore-8.0#microsoft-aspnetcore-authentication-openidconnect-openidconnectoptions-disabletelemetry.

RolandGuijt commented 1 month ago

Added. #183