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

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