Modified ClaimNameAttribute to support multiple claim names depending on environment
All checks were successful
ci/woodpecker/tag/api_build Pipeline was successful
ci/woodpecker/tag/api_uploadimage Pipeline was successful

Environment name will be pulled from environment variable: ASPNETCORE_ENVIRONMENT
This commit is contained in:
2024-04-07 20:18:53 -05:00
parent 822a8379aa
commit 9fae3b978f
6 changed files with 27 additions and 13 deletions

View File

@ -0,0 +1,9 @@
using System;
namespace YABA.Common.Utils
{
public static class EnvironmentUtils
{
public static bool IsDevelopmentEnvironment() => Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") == "Development";
}
}