Exemplo n.º 1
0
 private ApiScopeEvaluationResult EvaluateApiScope(IActionRequiringEntityPermissions <ActionOnNewPackageContext> action, ActionOnNewPackageContext context, params string[] requestedActions)
 {
     return(ApiScopeEvaluator.Evaluate(
                GetCurrentUser(),
                User.Identity.GetScopesFromClaim(),
                action,
                context,
                requestedActions));
 }
Exemplo n.º 2
0
 private ApiScopeEvaluationResult EvaluateApiScope(IActionRequiringEntityPermissions <PackageRegistration> action, PackageRegistration packageRegistration, params string[] requestedActions)
 {
     return(ApiScopeEvaluator.Evaluate(
                GetCurrentUser(),
                User.Identity.GetScopesFromClaim(),
                action,
                packageRegistration,
                requestedActions));
 }