Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .build/release.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Authors>Arturo Martinez</Authors>
<Company>DarkLoop</Company>
<PackageId>DarkLoop.Azure.Functions.Authorize</PackageId>
<IsPreview>true</IsPreview>
<IsPreview>false</IsPreview>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<Version>3.1.2</Version>
<FileVersion>$(Version).0</FileVersion>
Expand All @@ -17,6 +17,7 @@
<AssemblyOriginatorKeyFile>dl-sftwr-sn-key.snk</AssemblyOriginatorKeyFile>
<IsPackable>true</IsPackable>
<Description>Azure Functions V3 authentication extensions to enable authentication and authorization on a per function basis.</Description>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<PropertyGroup>
Expand All @@ -27,4 +28,8 @@
<Version>$(Version)$(PreviewVersion)</Version>
</PropertyGroup>

<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)..\README.md" Pack="true" PackagePath="\" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,8 @@ private Task ProcessAuthorizationAsync(ParameterInfo info)

if (allowAnonymous != null) return Task.CompletedTask;

#pragma warning disable CS0618 // Type or member is obsolete
var classAuthAttrs = cls.GetCustomAttributes<FunctionAuthorizeAttribute>();
var methodAuthAttrs = method.GetCustomAttributes<FunctionAuthorizeAttribute>();
#pragma warning restore CS0618 // Type or member is obsolete
var nameAttr = method.GetCustomAttribute<FunctionNameAttribute>();

var allAuthAttributes = classAuthAttrs.Concat(methodAuthAttrs).ToList();
Expand Down