Skip to content

Commit

Permalink
feat: Remove the single parameter constructor in SharedAccessKeyAuthe…
Browse files Browse the repository at this point in the history
…nticationAttribute (#337)

* Remove the single parameter constructor in the SharedAccessKeyAuthenticationAttribute

* Update SharedAccessKeyAuthenticationAttribute.cs

---------

Co-authored-by: Vincent ter Maat <[email protected]>
Co-authored-by: Stijn Moreels <[email protected]>
  • Loading branch information
3 people authored Mar 31, 2023
1 parent 4cbb2e0 commit 1c306fc
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@ public class SharedAccessKeyAuthenticationAttribute : TypeFilterAttribute
{
private readonly SharedAccessKeyAuthenticationOptions _options;

/// <summary>
/// Initializes a new instance of the <see cref="SharedAccessKeyAuthenticationAttribute"/> class.
/// </summary>
/// <param name="secretName">The name of the request header which value must match the stored secret with the same name as the header.</param>
/// <exception cref="ArgumentException">Thrown when the <paramref name="secretName"/> is blank.</exception>
[Obsolete("We now support multiple ways to specify the authentication key, we recommend using our overload instead")]
public SharedAccessKeyAuthenticationAttribute(string secretName) : this(headerName: secretName, queryParameterName: null, secretName: secretName) { }

/// <summary>
/// Initializes a new instance of the <see cref="SharedAccessKeyAuthenticationAttribute"/> class.
/// </summary>
Expand Down

0 comments on commit 1c306fc

Please sign in to comment.