Soenneker.Functions.Attributes.AllowAnonymous 4.0.24

Prefix Reserved
dotnet add package Soenneker.Functions.Attributes.AllowAnonymous --version 4.0.24
                    
NuGet\Install-Package Soenneker.Functions.Attributes.AllowAnonymous -Version 4.0.24
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Functions.Attributes.AllowAnonymous" Version="4.0.24" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Functions.Attributes.AllowAnonymous" Version="4.0.24" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Functions.Attributes.AllowAnonymous" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Functions.Attributes.AllowAnonymous --version 4.0.24
                    
#r "nuget: Soenneker.Functions.Attributes.AllowAnonymous, 4.0.24"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Functions.Attributes.AllowAnonymous@4.0.24
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Functions.Attributes.AllowAnonymous&version=4.0.24
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Functions.Attributes.AllowAnonymous&version=4.0.24
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.Functions.Attributes.AllowAnonymous

A marker attribute used by Soenneker's Azure Functions authentication middleware to bypass JWT authentication for a specific function entry point.

Install

dotnet add package Soenneker.Functions.Attributes.AllowAnonymous

Usage

using Microsoft.Azure.Functions.Worker;
using Microsoft.Azure.Functions.Worker.Http;
using Soenneker.Functions.Attributes.AllowAnonymous;

[Function("Health")]
[AllowAnonymousFunction]
public HttpResponseData Run(
    [HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = "health")]
    HttpRequestData request)
{
    HttpResponseData response = request.CreateResponse(System.Net.HttpStatusCode.OK);
    return response;
}

Apply the attribute to the same method that carries [Function]. The JWT middleware inspects that entry-point method and skips its authentication pipeline when the marker is present.

Important

  • This package only supplies metadata. It does not alter Azure Functions authorization or install authentication middleware by itself.
  • AuthorizationLevel.Anonymous controls the Functions host key requirement; [AllowAnonymousFunction] controls the separate Soenneker JWT middleware. Public endpoints generally need both settings to permit unauthenticated requests.
  • Use the marker deliberately. Any request reaching the marked function bypasses the middleware's JWT validation.
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Soenneker.Functions.Attributes.AllowAnonymous:

Package Downloads
Soenneker.Entra.Middlewares.JwtAuth.Functions

Middleware for Azure Functions that validates Microsoft Entra JWTs

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.24 128 9/24/2026
4.0.23 176 9/15/2026
4.0.22 208 9/12/2026
4.0.21 466 8/30/2026
4.0.20 131 8/29/2026
4.0.19 597 7/27/2026
4.0.18 389 7/16/2026
4.0.17 400 6/19/2026
4.0.16 416 6/5/2026
4.0.15 558 4/22/2026
4.0.14 449 3/12/2026
4.0.13 134 3/12/2026
4.0.11 141 3/12/2026
4.0.10 348 3/10/2026
4.0.9 148 3/9/2026
4.0.8 135 3/9/2026
4.0.7 129 3/9/2026
4.0.6 458 3/4/2026
4.0.5 840 1/2/2026
4.0.4 727 11/20/2025
Loading failed

Enable Native AOT compatibility analysis