4 implementations of
Microsoft.AspNetCore.Components.WebAssembly (1)
Microsoft.Extensions.Configuration (3)
47 writes to
Aspire.Dashboard (1)
Aspire.Hosting.Testing.Tests (3)
Aspire.Hosting.Tests (38)
Microsoft.AspNetCore.Hosting (2)
Microsoft.Extensions.Configuration (3)
382 references to
aspire (50)
Aspire.Cli.Tests (8)
Aspire.Dashboard (15)
Aspire.Hosting (73)
Aspire.Hosting.Azure (9)
Aspire.Hosting.DevTunnels (2)
Aspire.Hosting.Foundry (2)
Aspire.Hosting.GitHub.Models (8)
Aspire.Hosting.Maui (8)
Aspire.Hosting.OpenAI (8)
Aspire.Hosting.RemoteHost (2)
Aspire.Hosting.Testing.Tests (3)
Aspire.Hosting.Tests (8)
Aspire.OpenAI (1)
AspireJavaScript.ServiceDefaults (1)
AspireWithMaui.MauiServiceDefaults (1)
AspireWithMaui.ServiceDefaults (1)
AspireWithNode.ServiceDefaults (1)
AzureAppConfiguration.Web (1)
BasketService (1)
blazor-devserver (1)
CatalogDb (1)
dotnet-user-jwts (4)
Microsoft.AspNetCore (4)
Microsoft.AspNetCore.Authentication.JwtBearer (22)
JwtBearerConfigureOptions.cs (22)
43var validateIssuer = StringHelpers.ParseValueOrDefault(configSection[nameof(TokenValidationParameters.ValidateIssuer)], bool.Parse, options.TokenValidationParameters.ValidateIssuer);
44var issuer = configSection[nameof(TokenValidationParameters.ValidIssuer)];
46var validateAudience = StringHelpers.ParseValueOrDefault(configSection[nameof(TokenValidationParameters.ValidateAudience)], bool.Parse, options.TokenValidationParameters.ValidateAudience);
47var audience = configSection[nameof(TokenValidationParameters.ValidAudience)];
50options.Authority = configSection[nameof(options.Authority)] ?? options.Authority;
51options.BackchannelTimeout = StringHelpers.ParseValueOrDefault(configSection[nameof(options.BackchannelTimeout)], _invariantTimeSpanParse, options.BackchannelTimeout);
52options.Challenge = configSection[nameof(options.Challenge)] ?? options.Challenge;
53options.ForwardAuthenticate = configSection[nameof(options.ForwardAuthenticate)] ?? options.ForwardAuthenticate;
54options.ForwardChallenge = configSection[nameof(options.ForwardChallenge)] ?? options.ForwardChallenge;
55options.ForwardDefault = configSection[nameof(options.ForwardDefault)] ?? options.ForwardDefault;
56options.ForwardForbid = configSection[nameof(options.ForwardForbid)] ?? options.ForwardForbid;
57options.ForwardSignIn = configSection[nameof(options.ForwardSignIn)] ?? options.ForwardSignIn;
58options.ForwardSignOut = configSection[nameof(options.ForwardSignOut)] ?? options.ForwardSignOut;
59options.IncludeErrorDetails = StringHelpers.ParseValueOrDefault(configSection[nameof(options.IncludeErrorDetails)], bool.Parse, options.IncludeErrorDetails);
60options.MapInboundClaims = StringHelpers.ParseValueOrDefault( configSection[nameof(options.MapInboundClaims)], bool.Parse, options.MapInboundClaims);
61options.MetadataAddress = configSection[nameof(options.MetadataAddress)] ?? options.MetadataAddress;
62options.RefreshInterval = StringHelpers.ParseValueOrDefault(configSection[nameof(options.RefreshInterval)], _invariantTimeSpanParse, options.RefreshInterval);
63options.RefreshOnIssuerKeyNotFound = StringHelpers.ParseValueOrDefault(configSection[nameof(options.RefreshOnIssuerKeyNotFound)], bool.Parse, options.RefreshOnIssuerKeyNotFound);
64options.RequireHttpsMetadata = StringHelpers.ParseValueOrDefault(configSection[nameof(options.RequireHttpsMetadata)], bool.Parse, options.RequireHttpsMetadata);
65options.SaveToken = StringHelpers.ParseValueOrDefault(configSection[nameof(options.SaveToken)], bool.Parse, options.SaveToken);
85.SingleOrDefault(key => key["Issuer"] == issuer);
86if (signingKey is not null && signingKey["Value"] is string keyValue)
Microsoft.AspNetCore.Authentication.OpenIdConnect (46)
OpenIdConnectConfigureOptions.cs (46)
43options.AccessDeniedPath = new PathString(configSection[nameof(options.AccessDeniedPath)] ?? options.AccessDeniedPath.Value);
44options.Authority = configSection[nameof(options.Authority)] ?? options.Authority;
45options.AutomaticRefreshInterval = StringHelpers.ParseValueOrDefault(configSection[nameof(options.AutomaticRefreshInterval)], _invariantTimeSpanParse, options.AutomaticRefreshInterval);
46options.BackchannelTimeout = StringHelpers.ParseValueOrDefault(configSection[nameof(options.BackchannelTimeout)], _invariantTimeSpanParse, options.BackchannelTimeout);
47options.CallbackPath = new PathString(configSection[nameof(options.CallbackPath)] ?? options.CallbackPath.Value);
48options.ClaimsIssuer = configSection[nameof(options.ClaimsIssuer)] ?? options.ClaimsIssuer;
49options.ClientId = configSection[nameof(options.ClientId)] ?? options.ClientId;
50options.ClientSecret = configSection[nameof(options.ClientSecret)] ?? options.ClientSecret;
52options.DisableTelemetry = StringHelpers.ParseValueOrDefault(configSection[nameof(options.DisableTelemetry)], bool.Parse, options.DisableTelemetry);
53options.ForwardAuthenticate = configSection[nameof(options.ForwardAuthenticate)] ?? options.ForwardAuthenticate;
54options.ForwardChallenge = configSection[nameof(options.ForwardChallenge)] ?? options.ForwardChallenge;
55options.ForwardDefault = configSection[nameof(options.ForwardDefault)] ?? options.ForwardDefault;
56options.ForwardForbid = configSection[nameof(options.ForwardForbid)] ?? options.ForwardForbid;
57options.ForwardSignIn = configSection[nameof(options.ForwardSignIn)] ?? options.ForwardSignIn;
58options.ForwardSignOut = configSection[nameof(options.ForwardSignOut)] ?? options.ForwardSignOut;
59options.GetClaimsFromUserInfoEndpoint = StringHelpers.ParseValueOrDefault(configSection[nameof(options.GetClaimsFromUserInfoEndpoint)], bool.Parse, options.GetClaimsFromUserInfoEndpoint);
60options.MapInboundClaims = StringHelpers.ParseValueOrDefault(configSection[nameof(options.MapInboundClaims)], bool.Parse, options.MapInboundClaims);
61options.MaxAge = StringHelpers.ParseValueOrDefault(configSection[nameof(options.MaxAge)], _invariantNullableTimeSpanParse, options.MaxAge);
62options.MetadataAddress = configSection[nameof(options.MetadataAddress)] ?? options.MetadataAddress;
64options.Prompt = configSection[nameof(options.Prompt)] ?? options.Prompt;
65options.RefreshInterval = StringHelpers.ParseValueOrDefault(configSection[nameof(options.RefreshInterval)], _invariantTimeSpanParse, options.RefreshInterval);
66options.RefreshOnIssuerKeyNotFound = StringHelpers.ParseValueOrDefault(configSection[nameof(options.RefreshOnIssuerKeyNotFound)], bool.Parse, options.RefreshOnIssuerKeyNotFound);
67options.RemoteAuthenticationTimeout = StringHelpers.ParseValueOrDefault(configSection[nameof(options.RemoteAuthenticationTimeout)], _invariantTimeSpanParse, options.RemoteAuthenticationTimeout);
68options.RemoteSignOutPath = new PathString(configSection[nameof(options.RemoteSignOutPath)] ?? options.RemoteSignOutPath.Value);
69options.RequireHttpsMetadata = StringHelpers.ParseValueOrDefault(configSection[nameof(options.RequireHttpsMetadata)], bool.Parse, options.RequireHttpsMetadata);
70options.Resource = configSection[nameof(options.Resource)] ?? options.Resource;
71options.ResponseMode = configSection[nameof(options.ResponseMode)] ?? options.ResponseMode;
72options.ResponseType = configSection[nameof(options.ResponseType)] ?? options.ResponseType;
73options.ReturnUrlParameter = configSection[nameof(options.ReturnUrlParameter)] ?? options.ReturnUrlParameter;
74options.SaveTokens = StringHelpers.ParseValueOrDefault(configSection[nameof(options.SaveTokens)], bool.Parse, options.SaveTokens);
76options.SignedOutCallbackPath = new PathString(configSection[nameof(options.SignedOutCallbackPath)] ?? options.SignedOutCallbackPath.Value);
77options.SignedOutRedirectUri = configSection[nameof(options.SignedOutRedirectUri)] ?? options.SignedOutRedirectUri;
78options.SignInScheme = configSection[nameof(options.SignInScheme)] ?? options.SignInScheme;
79options.SignOutScheme = configSection[nameof(options.SignOutScheme)] ?? options.SignOutScheme;
80options.SkipUnrecognizedRequests = StringHelpers.ParseValueOrDefault(configSection[nameof(options.SkipUnrecognizedRequests)], bool.Parse, options.SkipUnrecognizedRequests);
81options.UsePkce = StringHelpers.ParseValueOrDefault(configSection[nameof(options.UsePkce)], bool.Parse, options.UsePkce);
82options.UseTokenLifetime = StringHelpers.ParseValueOrDefault(configSection[nameof(options.UseTokenLifetime)], bool.Parse, options.UseTokenLifetime);
94cookieBuilder.Domain = cookieConfigSection[nameof(cookieBuilder.Domain)] ?? cookieBuilder.Domain;
95cookieBuilder.HttpOnly = StringHelpers.ParseValueOrDefault(cookieConfigSection[nameof(cookieBuilder.HttpOnly)], bool.Parse, cookieBuilder.HttpOnly);
96cookieBuilder.IsEssential = StringHelpers.ParseValueOrDefault(cookieConfigSection[nameof(cookieBuilder.IsEssential)], bool.Parse, cookieBuilder.IsEssential);
97cookieBuilder.Expiration = StringHelpers.ParseValueOrDefault(cookieConfigSection[nameof(cookieBuilder.Expiration)], _invariantNullableTimeSpanParse, cookieBuilder.Expiration);
98cookieBuilder.MaxAge = StringHelpers.ParseValueOrDefault<TimeSpan?>(cookieConfigSection[nameof(cookieBuilder.MaxAge)], _invariantNullableTimeSpanParse, cookieBuilder.MaxAge);
99cookieBuilder.Name = cookieConfigSection[nameof(CookieBuilder.Name)] ?? cookieBuilder.Name;
100cookieBuilder.Path = cookieConfigSection[nameof(CookieBuilder.Path)] ?? cookieBuilder.Path;
101cookieBuilder.SameSite = cookieConfigSection[nameof(CookieBuilder.SameSite)] is string sameSiteMode
104cookieBuilder.SecurePolicy = cookieConfigSection[nameof(CookieBuilder.SecurePolicy)] is string securePolicy
Microsoft.AspNetCore.Components.Endpoints (1)
Microsoft.AspNetCore.Components.Server (1)
Microsoft.AspNetCore.DataProtection (1)
Microsoft.AspNetCore.Hosting (11)
Microsoft.AspNetCore.HttpsPolicy (1)
Microsoft.AspNetCore.Server.IIS (9)
Microsoft.AspNetCore.Server.Kestrel.Core (14)
Microsoft.AspNetCore.StaticAssets (2)
Microsoft.Extensions.AI.Integration.Tests (4)
Microsoft.Extensions.AI.OllamaSharp.Integration.Tests (1)
Microsoft.Extensions.AI.OpenAI.Tests (11)
Microsoft.Extensions.Configuration (3)
Microsoft.Extensions.Hosting (7)
Microsoft.Extensions.Http (19)
DependencyInjection\SocketsHttpHandlerBuilderExtensions.cs (19)
195PooledConnectionIdleTimeout = ParseTimeSpan(config[nameof(SocketsHttpHandler.PooledConnectionIdleTimeout)]),
196PooledConnectionLifetime = ParseTimeSpan(config[nameof(SocketsHttpHandler.PooledConnectionLifetime)]),
197PreAuthenticate = ParseBool(config[nameof(SocketsHttpHandler.PreAuthenticate)]),
198ResponseDrainTimeout = ParseTimeSpan(config[nameof(SocketsHttpHandler.ResponseDrainTimeout)]),
199UseCookies = ParseBool(config[nameof(SocketsHttpHandler.UseCookies)]),
200UseProxy = ParseBool(config[nameof(SocketsHttpHandler.UseProxy)]),
201EnableMultipleHttp2Connections = ParseBool(config[nameof(SocketsHttpHandler.EnableMultipleHttp2Connections)]),
202MaxResponseHeadersLength = ParseInt(config[nameof(SocketsHttpHandler.MaxResponseHeadersLength)]),
203MaxResponseDrainSize = ParseInt(config[nameof(SocketsHttpHandler.MaxResponseDrainSize)]),
204MaxConnectionsPerServer = ParseInt(config[nameof(SocketsHttpHandler.MaxConnectionsPerServer)]),
205MaxAutomaticRedirections = ParseInt(config[nameof(SocketsHttpHandler.MaxAutomaticRedirections)]),
206InitialHttp2StreamWindowSize = ParseInt(config[nameof(SocketsHttpHandler.InitialHttp2StreamWindowSize)]),
207AllowAutoRedirect = ParseBool(config[nameof(SocketsHttpHandler.AllowAutoRedirect)]),
208AutomaticDecompression = ParseEnum<DecompressionMethods>(config[nameof(SocketsHttpHandler.AutomaticDecompression)]),
209ConnectTimeout = ParseTimeSpan(config[nameof(SocketsHttpHandler.ConnectTimeout)]),
210Expect100ContinueTimeout = ParseTimeSpan(config[nameof(SocketsHttpHandler.Expect100ContinueTimeout)]),
211KeepAlivePingDelay = ParseTimeSpan(config[nameof(SocketsHttpHandler.KeepAlivePingDelay)]),
212KeepAlivePingTimeout = ParseTimeSpan(config[nameof(SocketsHttpHandler.KeepAlivePingTimeout)]),
213KeepAlivePingPolicy = ParseEnum<HttpKeepAlivePingPolicy>(config[nameof(SocketsHttpHandler.KeepAlivePingPolicy)])
Microsoft.Extensions.Logging.Configuration (1)
Microsoft.Extensions.Logging.Console (3)
Microsoft.Extensions.Logging.EventLog (1)
OrderProcessor (1)
OrleansServiceDefaults (1)
Playground.ServiceDefaults (1)
Seq.ServiceDefaults (1)
Stress.TelemetryService (2)
TestingAppHost1.MyWebApp (3)
TestingAppHost1.ServiceDefaults (1)
TestShop.ServiceDefaults (1)