Exemple #1
0
 private EdFiAuthorizationContext CreateAuthorizationContext(
     HttpActionContext actionContext,
     EdFiAuthorizationAttribute authorizationAttribute)
 {
     return(new EdFiAuthorizationContext(
                (ClaimsPrincipal)actionContext.RequestContext.Principal,
                EdFiConventions.GetApiResourceClaimUris(authorizationAttribute.Resource),
                _securityRepository.GetActionByHttpVerb(actionContext.Request.Method.Method)
                .ActionUri,
                null as object));
 }