예제 #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));
 }