Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
namespace AzureClaimsAuthenticator
{
using System;
[AttributeUsage(AttributeTargets.Method)]
public class RequiresClaimsAttribute : Attribute
{
public string ClaimType { get; set; }
public string ClaimValue { get; set; }
public RequiresClaimsAttribute(string claimType, string claimValue)
{
this.ClaimType = claimType;
this.ClaimValue = claimValue;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment