Questions tagged [policies]

200 questions
0
votes
1 answer

List permission boundaries aws

There are methods to list inline policies, user managed policies and aws managed policies etc I couldn't find one to list the boundaries attached to a user. I suppose there could be a way to add tags with users/boundaries to the policy and search…
Scilla
  • 355
  • 2
  • 13
0
votes
1 answer

Can i publish multiple APK/aab files built with the same Android studio on Play Store?

Can we give an APK/aab file to a client built by my own android studio and signed using my own signing key to upload to his play console? Will it cause problems ?
0
votes
1 answer

how to check laravel policy authorization in laravel request class?

I am using policies in my application. And for example, one user has a role customer-role. This customer-role has the customer.view permission. and in my customer policy I am checking like this. public function view(User $user) { return…
anonymous
  • 11
  • 6
0
votes
1 answer

Laravel (7) Resource Policies don't work with CamelCase, get a 403 for view policy (show in controller)

Here a two examples, first for ResourceController (return 200 - ok ), second for ResourceLogsController (returns 403 - not authorized ) api.php // RESOURCES Route::apiResource('resources','Api\ResourceController'); //…
0
votes
1 answer

Custom Message - Laravel 7 - Denied Authorization

I have a controller in which in its function it verifies the policy assigned to the Post model : App\Http\Controllers\PostController class PostController extends Controller { public function index(Request $request, Post $post) { …
0
votes
2 answers

Delete All Azure Policies at once

Is there any way to delete all the assigned policies at once in azure? I have deployed 93 policies through azure blueprints and when I have unassigned the blueprint, the blueprint assignment is deleted but policies remains in the "Policy"…
0
votes
2 answers

Laravel policy not running on update/delete model

I'm trying to make this policy stuff work, and i have followed the documentation. But it doesn't seem like the policy code is not even run. I have Role model. And i created RolePolicy. The thing i want to do in the policy is to ensure that the role…
Kaizokupuffball
  • 2,703
  • 8
  • 38
  • 58
0
votes
2 answers

API Management advanced policies - Limit concurrency to 1

I have an API in Azure API Management with multiple operations. One specific of those operations should have an limit execution concurrency of 1. I tried to limit the parallel execution with the following backend policie, like in the Microsoft Docs…
marco
  • 3
  • 2
0
votes
1 answer

How to setup 405 Method Not Allowed for each of the methods in APIs using azure API Management

In azure API Management how to setup the 405 (Method not allowed) policy. I am using azure API management APIs and adding different policies like jwt validation, IP filtering, rate limit and all. But I couldn't find a way for add the 405 method not…
0
votes
1 answer

Testing azure inline functions in policy definitions

I am currently working on implementing our naming policies using azure policy. I am having some issues with the match / equals / like operators. They seem to match even though I think they should not. For instance "value": "[substring(field('name'),…
0
votes
1 answer

AuthorizationHandlerContext returns null User in custom Authorization Handler

I am trying to implement a custom authorization requirement, but it seems like context.User.Identity does not contain any data so the ClaimsPrincipal User. I added service and policy like this services.AddAuthorization(config => { …
0
votes
1 answer

Policy changes to specific processor

Good afternoon. I'm able to change the global policies for NiFi through REST API, however, I'm trying to edit the access policies for an ARBITRARY processor. I have no idea how to do so. Everything in the NiFi REST API website calls everything else…
0
votes
0 answers

Mocking Laravel Gate fails when view has @can directive

On my Laravel(7) project, I'm using spatie/laravel-permission for authorization and have Policies for each Model (auto bound) being called via the controller. Also I return views from my controller. Controller looks like this: class RoleController…
Jude F'do
  • 127
  • 2
  • 11
0
votes
1 answer

Laravel - model policy in some routes not working

In a revision work - Laravel 5.8 - I'm facing a strange behavior: app » Policies » CustomerPolicy public function create(User $user ) { dd($user); // for debugging purposes } ... public function update(User $user, Customer…
bito_
  • 169
  • 2
  • 10
0
votes
1 answer

AzureAD with ASP.NET Core

So, we have a frontend application in Angular in which a user can login to Azure Ad using MSAL. The login retrieves an accessToken for the backend api with the groups in which the user is employed in it. Because their are only three groups…