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