21 references to Scope
Aspire.Dashboard (4)
DashboardWebApplication.cs (4)
586if (!options.Scope.Contains(OpenIdConnectScope.OpenId)) 588options.Scope.Add(OpenIdConnectScope.OpenId); 591if (!options.Scope.Contains("profile")) 593options.Scope.Add("profile");
Microsoft.AspNetCore.Authentication.OpenIdConnect (5)
OpenIdConnectConfigureOptions.cs (2)
75ClearAndSetListOption(options.Scope, configSection.GetSection(nameof(options.Scope)));
OpenIdConnectHandler.cs (1)
407Scope = string.Join(" ", properties.GetParameter<ICollection<string>>(OpenIdConnectParameterNames.Scope) ?? Options.Scope),
OpenIdConnectOptions.cs (2)
53Scope.Add("openid"); 54Scope.Add("profile");
Microsoft.AspNetCore.Authentication.Test (12)
OpenIdConnect\OpenIdConnectChallengeTests.cs (6)
587opt.Scope.Clear(); 588opt.Scope.Add("foo"); 589opt.Scope.Add("bar"); 611opt.Scope.Clear(); 612opt.Scope.Add("foo"); 613opt.Scope.Add("bar");
OpenIdConnect\OpenIdConnectTests.cs (5)
534Assert.Equal(2, options.Scope.Count); 535Assert.DoesNotContain("openid", options.Scope); 536Assert.DoesNotContain("profile", options.Scope); 537Assert.Contains("given_name", options.Scope); 538Assert.Contains("birthdate", options.Scope);
OpenIdConnect\TestSettings.cs (1)
244ValidateParameter(OpenIdConnectParameterNames.Scope, string.Join(" ", _options.Scope), actualParams, errors, htmlEncoded);