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

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