Questions tagged [policies]

200 questions
0
votes
1 answer

Add another policies if I have Admin policy

I have a controller with authorize attribute: Authorize(AuthorizationPolicies.Viewer)] [HttpGet("retrieve/{id}")] public ActionResult Retrieve(int id) And have authorization policies: public static void…
Dmytro
  • 245
  • 1
  • 5
  • 13
0
votes
1 answer

Laravel Policies to secure subobjects

I have a quick question about Laravel Policies. I'm writing a very simple API. I have a Podcast object with some GET endpoints: GET /api/podcasts => returns all podcasts GET /api/podcasts/{podcast} => returns a given podcast I'm using Policies…
Axel
  • 35
  • 3
0
votes
1 answer

Dataweave code in mule custom policy configuration

I am working on creating custom policy in mule. In configuration XML of the policy I am seeing various mule: transformers, set variable, loggers etc. while adding in before tag () but dataweave. I want to include dataweave code snippet in…
0
votes
1 answer

Limiting usage quota by API in Azure API Management

The Azure API Management Policies have a nice array of possibilities. The examples how to configure the Usage Quota by subscription or by key are everywhere. But what if I want to set a different quota for different APIs in the same Subscription?…
Vadim Berman
  • 1,932
  • 1
  • 20
  • 39
0
votes
2 answers

AWS IoT SDK - main L#206 Error subscribing : -28 (C code)

I am trying to run the example in this tutorial from AWS IoT (AWS IoT Embedded C SDK). My aws_iot_config.h file has the following configuration: #define AWS_IOT_MQTT_HOST "XXXXXXX.iot.us-east-2.amazonaws.com" ///< Customer specific…
Dalton Cézane
  • 3,672
  • 2
  • 35
  • 60
0
votes
2 answers

Check user access with middleware string

I have a String with a middleware rule (like in routes): $middleware = "can:index,App\Models\Order"; Is there any possiblity to check if a given user has access with this middleware rule?
Jochem Gruter
  • 2,813
  • 5
  • 21
  • 43
0
votes
2 answers

What is the difference between a Rule and a Policy

in the context of a database, we sometimes need to check values against some statements like "the customer name is non-empty" or "the customer number of purchases is positive"... But do such statements constitute rules or policies ? In general how…
Pragmateek
  • 13,174
  • 9
  • 74
  • 108
0
votes
1 answer

Laravel Policies in Model and how to avoid authorization in particular views.

I will try to explain. Im developing an Ecommerce application and in order to provide backend authorization I applied laravel Policies to a Model (product model). The problem resides when I tried to use the same product model in frontend views,…
s_h
  • 1,476
  • 2
  • 27
  • 61
0
votes
1 answer

Publishing policy through Wso2 EntitlementPolicyAdminService

So i am trying to add some policies to the PDP of wso2. I did manage to add policies using this code public function addPolicy($policy, $policyId = '') { $this->soapClient->__soapCall( 'addPolicy', [ …
nickGR
  • 110
  • 4
  • 11
0
votes
1 answer

Using Policies in Laravel 5.5.14

I am new in using policies in Laravel. I am learning API Development using Laravel. My codes are as bellows. TopicPolicy.php
abu abu
  • 6,599
  • 19
  • 74
  • 131
0
votes
1 answer

How can I manually accept users that signup using Azure B2C active directory?

I'm using Azure B2C to allow users to signup and login to my asp.net web form. By default, users are granted access as soon as the finish the signup policy form. How can I make it so that I have to manually grant them access? I noticed in the…
justinpees
  • 420
  • 5
  • 20
0
votes
1 answer

Laravel policy is returning unauthorised

I have a policy that checks if the authenticated user can delete a consultant. Unfortunately, the response is always unauthorised, and I'm unsure why! Policy function (ClinicConsultantPolicy): public function delete(User $user, Consultant…
user860511
0
votes
0 answers

How to change Host header request via APIMAN Policy

I have a question about how can I configure -H "Host: my.host.com" from gateway to my api. I have the following logic: I try to cover, for example, my-api.net via apiman-gateway. For example, I can do the following direct call to my api like 'curl…
0
votes
1 answer

Wmic & GPRESULT output wrong

i need assistance on a error showed to me when i try to did it on command line: wmic /node:brspd030 computersystem get caption >>\\brspd010\c$\users\machael1\desktop\gpresult.txt & psexec \\brspd030 gpresult -r | findstr /i "WSUS"…
0
votes
1 answer

How can I do Authorization Policies in Laravel 5.3?

I read here : https://laravel.com/docs/5.3/authorization#writing-policies And I tried to like this My FavoritePolicy is like this :
moses toh
  • 12,344
  • 71
  • 243
  • 443