Example #1
0
 public static int GetRoleUser(this HttpContext context)
 {
     return(int.Parse(RetrieveTokken.GetClaim("role", context)));
 }
Example #2
0
        public static int GetRulePlaceUser(this HttpContext context)
        {
            string t = RetrieveTokken.GetClaim("idRulePlace", context);

            return(int.Parse(t != null ? t : 0.ToString()));
        }
Example #3
0
 public static int GetIdUser(this HttpContext context)
 {
     return(int.Parse(RetrieveTokken.GetClaim("unique_name", context)));
 }
Example #4
0
 public static string GetRoleUser(this HttpContext context)
 {
     return(RetrieveTokken.GetClaim("role", context));
 }