Exemple #1
0
 public static IHtmlContent IfClaimShow(this IHtmlContent page, HttpContext context, string claimType, string claimValue)
 {
     return(CustomAuthorization.ValidarClaimsUsuario(context, claimType, claimValue) ? page : null);
 }
Exemple #2
0
 public static bool IfClaim(this RazorPage page, string claimType, string claimValue)
 {
     return(CustomAuthorization.ValidarClaimsUsuario(page.Context, claimType, claimValue));
 }
Exemple #3
0
 public static string IfClaimShow(this RazorPage page, string claimType, string claimValue)
 {
     return(CustomAuthorization.ValidarClaimsUsuario(page.Context, claimType, claimValue) ? "" : "disabled");
 }