81 instantiations of AllowAnonymousAttribute
BasicWebSite (7)
Controllers\AntiforgeryController.cs (7)
20[AllowAnonymous] 28[AllowAnonymous] 36[AllowAnonymous] 45[AllowAnonymous] 54[AllowAnonymous] 64[AllowAnonymous] 72[AllowAnonymous]
Identity.DefaultUI.WebSite (2)
Pages\Contoso\Login.cshtml.cs (1)
15[AllowAnonymous]
Pages\Index.cshtml.cs (1)
9[AllowAnonymous]
IdentitySample.Mvc (22)
Controllers\AccountController.cs (22)
41[AllowAnonymous] 51[AllowAnonymous] 89[AllowAnonymous] 99[AllowAnonymous] 141[AllowAnonymous] 154[AllowAnonymous] 199[AllowAnonymous] 236[AllowAnonymous] 255[AllowAnonymous] 264[AllowAnonymous] 293[AllowAnonymous] 302[AllowAnonymous] 311[AllowAnonymous] 337[AllowAnonymous] 346[AllowAnonymous] 362[AllowAnonymous] 405[AllowAnonymous] 420[AllowAnonymous] 452[AllowAnonymous] 467[AllowAnonymous] 499[AllowAnonymous] 514[AllowAnonymous]
Microsoft.AspNetCore.Authorization.Policy (1)
AuthorizationEndpointConventionBuilderExtensions.cs (1)
14private static readonly IAllowAnonymous _allowAnonymousMetadata = new AllowAnonymousAttribute();
Microsoft.AspNetCore.Authorization.Test (2)
AuthorizationMiddlewareTests.cs (2)
573var context = GetHttpContext(anonymous: true, endpoint: CreateEndpoint(new AuthorizeAttribute(), new AllowAnonymousAttribute()), authenticationService: authenticationService); 802var context = GetHttpContext(endpoint: CreateEndpoint(new AuthorizeAttribute(), new AllowAnonymousAttribute()), authenticationService: authenticationService);
Microsoft.AspNetCore.Identity.UI (32)
Areas\Identity\Pages\V4\Account\ConfirmEmail.cshtml.cs (1)
16[AllowAnonymous]
Areas\Identity\Pages\V4\Account\ConfirmEmailChange.cshtml.cs (1)
16[AllowAnonymous]
Areas\Identity\Pages\V4\Account\ExternalLogin.cshtml.cs (1)
21[AllowAnonymous]
Areas\Identity\Pages\V4\Account\ForgotPassword.cshtml.cs (1)
18[AllowAnonymous]
Areas\Identity\Pages\V4\Account\ForgotPasswordConfirmation.cshtml.cs (1)
13[AllowAnonymous]
Areas\Identity\Pages\V4\Account\Lockout.cshtml.cs (1)
13[AllowAnonymous]
Areas\Identity\Pages\V4\Account\Login.cshtml.cs (1)
19[AllowAnonymous]
Areas\Identity\Pages\V4\Account\LoginWith2fa.cshtml.cs (1)
17[AllowAnonymous]
Areas\Identity\Pages\V4\Account\LoginWithRecoveryCode.cshtml.cs (1)
17[AllowAnonymous]
Areas\Identity\Pages\V4\Account\Logout.cshtml.cs (1)
15[AllowAnonymous]
Areas\Identity\Pages\V4\Account\Register.cshtml.cs (1)
22[AllowAnonymous]
Areas\Identity\Pages\V4\Account\RegisterConfirmation.cshtml.cs (1)
16[AllowAnonymous]
Areas\Identity\Pages\V4\Account\ResendEmailConfirmation.cshtml.cs (1)
18[AllowAnonymous]
Areas\Identity\Pages\V4\Account\ResetPassword.cshtml.cs (1)
17[AllowAnonymous]
Areas\Identity\Pages\V4\Account\ResetPasswordConfirmation.cshtml.cs (1)
13[AllowAnonymous]
Areas\Identity\Pages\V4\Error.cshtml.cs (1)
15[AllowAnonymous]
Areas\Identity\Pages\V5\Account\ConfirmEmail.cshtml.cs (1)
16[AllowAnonymous]
Areas\Identity\Pages\V5\Account\ConfirmEmailChange.cshtml.cs (1)
16[AllowAnonymous]
Areas\Identity\Pages\V5\Account\ExternalLogin.cshtml.cs (1)
21[AllowAnonymous]
Areas\Identity\Pages\V5\Account\ForgotPassword.cshtml.cs (1)
18[AllowAnonymous]
Areas\Identity\Pages\V5\Account\ForgotPasswordConfirmation.cshtml.cs (1)
13[AllowAnonymous]
Areas\Identity\Pages\V5\Account\Lockout.cshtml.cs (1)
13[AllowAnonymous]
Areas\Identity\Pages\V5\Account\Login.cshtml.cs (1)
19[AllowAnonymous]
Areas\Identity\Pages\V5\Account\LoginWith2fa.cshtml.cs (1)
17[AllowAnonymous]
Areas\Identity\Pages\V5\Account\LoginWithRecoveryCode.cshtml.cs (1)
17[AllowAnonymous]
Areas\Identity\Pages\V5\Account\Logout.cshtml.cs (1)
15[AllowAnonymous]
Areas\Identity\Pages\V5\Account\Register.cshtml.cs (1)
22[AllowAnonymous]
Areas\Identity\Pages\V5\Account\RegisterConfirmation.cshtml.cs (1)
16[AllowAnonymous]
Areas\Identity\Pages\V5\Account\ResendEmailConfirmation.cshtml.cs (1)
18[AllowAnonymous]
Areas\Identity\Pages\V5\Account\ResetPassword.cshtml.cs (1)
17[AllowAnonymous]
Areas\Identity\Pages\V5\Account\ResetPasswordConfirmation.cshtml.cs (1)
13[AllowAnonymous]
Areas\Identity\Pages\V5\Error.cshtml.cs (1)
15[AllowAnonymous]
Microsoft.AspNetCore.Mvc.Core.Test (3)
ApplicationModels\AuthorizationApplicationModelProviderTest.cs (2)
244[AllowAnonymous] 247[AllowAnonymous]
ApplicationModels\ControllerActionDescriptorProviderTests.cs (1)
1750[AllowAnonymous]
Microsoft.AspNetCore.Mvc.RazorPages (4)
DependencyInjection\PageConventionCollectionExtensions.cs (4)
80model.EndpointMetadata.Add(new AllowAnonymousAttribute()); 116model.EndpointMetadata.Add(new AllowAnonymousAttribute()); 141model.EndpointMetadata.Add(new AllowAnonymousAttribute()); 177model.EndpointMetadata.Add(new AllowAnonymousAttribute());
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
ApplicationModels\AuthorizationPageApplicationModelProviderTest.cs (1)
180[AllowAnonymous]
RazorPagesWebSite (1)
Pages\Conventions\AuthFolder\AnonymousModel.cs (1)
9[AllowAnonymous]
SecurityWebSite (6)
Controllers\AdministrationController.cs (2)
29[AllowAnonymous] 35[AllowAnonymous]
Controllers\AuthorizedActionsController.cs (1)
11[AllowAnonymous]
Controllers\AuthorizedController.cs (1)
17[AllowAnonymous]
Controllers\LoginController.cs (1)
12[AllowAnonymous]
Pages\AllowAnonymousPageViaModel.cshtml.cs (1)
10[AllowAnonymous]
11 references to AllowAnonymousAttribute
Microsoft.AspNetCore.App.Analyzers.Test (1)
Verifiers\CSharpAnalyzerVerifier.cs (1)
83TrimAssemblyExtension(typeof(Microsoft.AspNetCore.Authorization.AllowAnonymousAttribute).Assembly.Location),
Microsoft.AspNetCore.Authorization.Policy (1)
AuthorizationEndpointConventionBuilderExtensions.cs (1)
120/// Allows anonymous access to the endpoint by adding <see cref="AllowAnonymousAttribute" /> to the endpoint metadata. This will bypass
Microsoft.AspNetCore.Mvc.Core.Test (1)
ApplicationModels\ControllerActionDescriptorProviderTests.cs (1)
267metadata => Assert.IsType<AllowAnonymousAttribute>(metadata));
Microsoft.AspNetCore.Mvc.RazorPages.Test (8)
DependencyInjection\PageConventionCollectionExtensionsTest.cs (8)
73Assert.IsType<AllowAnonymousAttribute>(model.EndpointMetadata[1]); 132Assert.IsType<AllowAnonymousAttribute>(Assert.Single(model.EndpointMetadata)); 195metadata => Assert.IsType<AllowAnonymousAttribute>(metadata)); 202metadata => Assert.IsType<AllowAnonymousAttribute>(metadata)); 280metadata => Assert.IsType<AllowAnonymousAttribute>(metadata)); 288metadata => Assert.IsType<AllowAnonymousAttribute>(metadata)); 358Assert.IsType<AllowAnonymousAttribute>(Assert.Single(model.EndpointMetadata)); 364Assert.IsType<AllowAnonymousAttribute>(Assert.Single(model.EndpointMetadata));