Modified ClaimNameAttribute to support multiple claim names depending on environment
Environment name will be pulled from environment variable: ASPNETCORE_ENVIRONMENT
This commit is contained in:
@ -4,11 +4,13 @@ namespace YABA.Common.Attributes
|
||||
{
|
||||
public class ClaimNameAttribute : Attribute
|
||||
{
|
||||
public string Name { get; private set; }
|
||||
public string DevClaimName { get; private set; }
|
||||
public string ProdClaimName { get; private set; }
|
||||
|
||||
public ClaimNameAttribute(string name)
|
||||
public ClaimNameAttribute(string devClaimName, string prodClaimName)
|
||||
{
|
||||
this.Name = name;
|
||||
this.DevClaimName = devClaimName;
|
||||
ProdClaimName = prodClaimName;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user