refactor: Projektdateien migriert. Cloud-NuGet-Pakete durch lokale NuGet-Projekte ersetzt.

This commit is contained in:
Developer 02
2024-08-01 18:44:39 +02:00
parent 0d82f7af6f
commit 62ddd4873f
206 changed files with 10927 additions and 1 deletions

View File

@@ -0,0 +1,32 @@
using System;
using System.ComponentModel.DataAnnotations;
namespace HRD.LDAPService
{
public class JwtRole
{
private string role;
private string _group;
public JwtRole(string role) : this(role, string.Empty)
{ }
public JwtRole(string role, string group)
{
Role = role;
Group = group;
}
[Required]
public string Role { get => role; set => role = value; }
[Required]
public string Group
{
get => _group;
//"dhr/" prefix should be removed
set => _group = string.IsNullOrEmpty(value) ? string.Empty : value.Replace(@"DHR\", "", StringComparison.InvariantCultureIgnoreCase);
}
}
}