From 16f53e7ba773c241072c12a44ecfe01e2a8ae9be Mon Sep 17 00:00:00 2001 From: Joe DeCock Date: Fri, 23 Feb 2024 22:02:40 -0600 Subject: [PATCH] Include DisableTelemetry in example usage of AddOpenIdConnect Actually in most cases where we add the OIDC handler, we either omit most options, or it is in the context of a a quickstart tutorial where I think extra options distract from the tutorial. So we only really need to do this in one place --- IdentityServer/v7/docs/content/tokens/requesting.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/IdentityServer/v7/docs/content/tokens/requesting.md b/IdentityServer/v7/docs/content/tokens/requesting.md index 09cc580a..c7e2ff1e 100644 --- a/IdentityServer/v7/docs/content/tokens/requesting.md +++ b/IdentityServer/v7/docs/content/tokens/requesting.md @@ -172,7 +172,7 @@ Pragma: no-cache { "id_token": "...", "access_token": "...", - "refresh_token": "..." + "refresh_token": "...", "token_type": "bearer", "expires_in": 3600, } @@ -215,6 +215,9 @@ public void ConfigureServices(IServiceCollection services) NameClaimType = "name", RoleClaimType = "role" }; + + // Disable x-client-SKU and x-client-ver headers + options.DisableTelemetry = true; }); } ```