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