43 writes to Authority
Aspire.Keycloak.Authentication (1)
AspireKeycloakExtensions.cs (1)
169
options.
Authority
= GetAuthorityUri(serviceName, realm);
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectConfigureOptions.cs (1)
44
options.
Authority
= configSection[nameof(options.Authority)] ?? options.Authority;
Microsoft.AspNetCore.Authentication.Test (40)
OpenIdConnect\OpenIdConnectAuthenticateTests.cs (3)
21
opt.
Authority
= TestServerBuilder.DefaultAuthority;
46
opt.
Authority
= TestServerBuilder.DefaultAuthority;
74
opt.
Authority
= TestServerBuilder.DefaultAuthority;
OpenIdConnect\OpenIdConnectChallengeTests.cs (23)
27
opt.
Authority
= TestServerBuilder.DefaultAuthority;
58
opt.
Authority
= TestServerBuilder.DefaultAuthority;
93
opt.
Authority
= TestServerBuilder.DefaultAuthority;
117
opt.
Authority
= TestServerBuilder.DefaultAuthority;
155
opt.
Authority
= TestServerBuilder.DefaultAuthority;
186
o.
Authority
= TestServerBuilder.DefaultAuthority;
217
opt.
Authority
= TestServerBuilder.DefaultAuthority;
257
opts.
Authority
= TestServerBuilder.DefaultAuthority;
296
opts.
Authority
= TestServerBuilder.DefaultAuthority;
339
opts.
Authority
= TestServerBuilder.DefaultAuthority;
371
opts.
Authority
= TestServerBuilder.DefaultAuthority;
404
opts.
Authority
= TestServerBuilder.DefaultAuthority;
433
o.
Authority
= TestServerBuilder.DefaultAuthority;
481
opt.
Authority
= TestServerBuilder.DefaultAuthority;
502
opt.
Authority
= TestServerBuilder.DefaultAuthority;
523
opt.
Authority
= TestServerBuilder.DefaultAuthority;
543
opt.
Authority
= TestServerBuilder.DefaultAuthority;
567
opt.
Authority
= TestServerBuilder.DefaultAuthority;
589
opt.
Authority
= TestServerBuilder.DefaultAuthority;
613
opt.
Authority
= TestServerBuilder.DefaultAuthority;
637
opt.
Authority
= TestServerBuilder.DefaultAuthority;
661
opt.
Authority
= TestServerBuilder.DefaultAuthority;
683
opt.
Authority
= TestServerBuilder.DefaultAuthority;
OpenIdConnect\OpenIdConnectConfigurationTests.cs (6)
22
o.
Authority
= TestServerBuilder.DefaultAuthority;
455
o.
Authority
= TestServerBuilder.DefaultAuthority;
476
o.
Authority
= TestServerBuilder.DefaultAuthority;
490
o.
Authority
= TestServerBuilder.DefaultAuthority;
517
o.
Authority
= "http://example.com";
547
o.
Authority
= TestServerBuilder.DefaultAuthority;
OpenIdConnect\OpenIdConnectTests.cs (7)
194
o.
Authority
= TestServerBuilder.DefaultAuthority;
212
o.
Authority
= TestServerBuilder.DefaultAuthority;
231
o.
Authority
= TestServerBuilder.DefaultAuthority;
263
o.
Authority
= TestServerBuilder.DefaultAuthority;
307
o.
Authority
= TestServerBuilder.DefaultAuthority;
331
o.
Authority
= TestServerBuilder.DefaultAuthority;
354
o.
Authority
= TestServerBuilder.DefaultAuthority;
OpenIdConnect\TestServerBuilder.cs (1)
31
Authority
= DefaultAuthority,
OpenIdConnectSample (1)
Startup.cs (1)
109
o.
Authority
= "https://demo.duendesoftware.com/";
12 references to Authority
Aspire.Keycloak.Authentication.Tests (2)
AspireKeycloakExtensionTests.cs (2)
155
Assert.Equal(options.
Authority
, $"https+http://{DefaultKeyName}/realms/{realm}");
178
Assert.Equal(options.
Authority
, $"https+http://{DefaultKeyName}/realms/{realm}");
Microsoft.AspNetCore.Authentication.OpenIdConnect (6)
OpenIdConnectConfigureOptions.cs (2)
44
options.Authority = configSection[nameof(options.
Authority
)] ?? options.
Authority
;
OpenIdConnectOptions.cs (1)
109
throw new InvalidOperationException($"Provide {nameof(
Authority
)}, {nameof(MetadataAddress)}, "
OpenIdConnectPostConfigureOptions.cs (3)
82
else if (!(string.IsNullOrEmpty(options.MetadataAddress) && string.IsNullOrEmpty(options.
Authority
)))
84
if (string.IsNullOrEmpty(options.MetadataAddress) && !string.IsNullOrEmpty(options.
Authority
))
86
options.MetadataAddress = options.
Authority
;
Microsoft.AspNetCore.Authentication.Test (4)
OpenIdConnect\OpenIdConnectTests.cs (1)
444
Assert.Equal("https://authority.com", options.
Authority
);
OpenIdConnect\TestSettings.cs (3)
222
expectedAuthority = _options.Configuration?.TokenEndpoint ?? _options.
Authority
+ @"/oauth2/token";
225
expectedAuthority = _options.Configuration?.EndSessionEndpoint ?? _options.
Authority
+ @"/oauth2/logout";
228
expectedAuthority = _options.Configuration?.AuthorizationEndpoint ?? _options.
Authority
+ @"/oauth2/authorize";