Extensions to the System.Security namespace.
- You must have Visual Studio 2019 Community or higher.
- The dotnet cli is also highly recommended.
Extensions to the System.Security namespace:
- ClaimsIdentity: fluent
ClaimsIdentity
builder class. - ClaimsIdentityExtensions: useful extensions to the
ClaimsIdentity
class
- Run dotnet restore
- Run dotnet build
- Run dotnet test
Use the package manager NuGet to install Dime.Identity:
- dotnet cli:
dotnet add package Dime.Identity
- Package manager:
Install-Package Dime.Identity
using System.Security;
public string GetUserTimeZone(ClaimsIdentity currentUser)
{
return currentUser.GetUserClaim<string>("TimeZoneClaim");
}
Pull requests are welcome. Please check out the contribution and code of conduct guidelines.