Skip to content

Instantly share code, notes, and snippets.

@BertCraven
Created March 27, 2011 15:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BertCraven/889319 to your computer and use it in GitHub Desktop.
Save BertCraven/889319 to your computer and use it in GitHub Desktop.
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