示例#1
0
        public static int GetRulePlaceUtilisateur(this HttpContext context)
        {
            string t = RetrieveTokken.GetClaim("idRulePlace", context);

            return(int.Parse(t != null ? t : 0.ToString()));
        }
示例#2
0
 public static int GetPlaceUtilisateur(this HttpContext context)
 {
     return(int.Parse(RetrieveTokken.GetClaim("idPlace", context)));
 }
示例#3
0
 public static int GetIdRegion(this HttpContext context)
 {
     return(int.Parse(RetrieveTokken.GetClaim("idRegion", context)));
 }
示例#4
0
 public static string GetRoleUtilisateur(this HttpContext context)
 {
     return(RetrieveTokken.GetClaim("role", context));
 }
示例#5
0
 public static int GetIdUtilisateur(this HttpContext context)
 {
     return(int.Parse(RetrieveTokken.GetClaim("unique_name", context)));
 }