Questions tagged [access-control]

Access control is the process of limiting the access of ability of users or services to certain resources.

Access control is the process of limiting the access of ability of users or services to certain resources.

Historically, there have been several access control models:

  • discretionary access control (DAC): In computer security, discretionary access control (DAC) is a type of access control defined by the Trusted Computer System Evaluation Criteria "as a means of restricting access to objects based on the identity of subjects and/or groups to which they belong. (source: Wikipedia)
  • mandatory access control (MAC): The mandatory part of the definition indicates that enforcement of controls is performed by administrators and the operating system. This is in contrast to the default security mechanism of Discretionary Access Control (DAC) where enforcement is left to the discretion of users.(source: wikipedia)
  • Role-based access control (RBAC): Role-based access control (RBAC) is a method of regulating access to computer or network resources based on the roles of individual users within an enterprise. RBAC was formally defined by NIST, the National Institute of Standards and Technology. More can be found on their website.
  • Attribute-based access control (ABAC): ABAC extends the way RBAC works. Instead of just focusing on user identities, roles, and groups, ABAC defines attributes (key-value pairs) that can be used to describe users, resources, actions, and context. With ABAC, it is possible to define finer-grained access policies. A common language used to define ABAC is XACML. NIST is currently formalizing ABAC. See their website for more information.
1370 questions
-1
votes
1 answer

Access-Control-Allow-Origin error during token generation in OWIN enabled application

I am using C# Web API + CORS + Owin from Angular 8 application. I am getting below error while generating the token. I looked at variuos articles but I could not solve the problem. Access to XMLHttpRequest at 'http://localhost:60544/Token' from…
-1
votes
1 answer

React-app deployed to firebase gives out a cors error when trying to access a publicly available endpoint

I have used this end point in my react-app which is publicly available. Even though this endpoint is publicly available to everyone unfortunately they have not set Access-Control-Allow-Origin to all so I had to use moseif cors extension to skip the…
Dante_97
  • 73
  • 1
  • 14
-1
votes
1 answer

Is there a way to request both camera permission and photo library permission at the same time?

I am creating an application that gives users the option to upload a profile picture. I am using Fusuma as a third party substitute for UIImagePickerController. It has a bug that is requiring me to ask for camera and photo library permission before…
David Chopin
  • 2,780
  • 2
  • 19
  • 40
-1
votes
1 answer

Manage route in security.yml with access_control

I want : /p/{name} ==> in public access /profile ==> in loggin access I did this in security.yml access_control: - { path: ^/[p]/* , role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/*, role: ROLE_CONNECT } But, when I browse…
Greg
  • 826
  • 5
  • 21
-1
votes
1 answer

Cordova can not access to AJAX

i'm using Browser platform of Cordova, also i'm using cordova-plugin-whitelist and Content-Security-Policy tag into my html codes. but i get below error in console: JQMIGRATE: Migrate is installed, version 3.0.0 adding proxy for Device SEC7118:…
saleh mosleh
  • 135
  • 1
  • 14
-1
votes
1 answer

Angular 1.5 Response status returning NULL (-1) instead of 503 due to cors

I am getting response status of 503 on a No Access-Control-Allow-Origin header error in the browser but Angular 1.5.5. $http is getting a status of NULL (-1). Is there any way for me to get the actual 503 error in Angular? Thanks.
Mitch
  • 31
  • 3
-1
votes
2 answers

Access Control Allow Headers not allowing contents of an iframe to load

I have two php pages in the same directory. These are edit_page.php and page.php. edit_page.php has a wysiwyg editor where I can edit the contents of another page through an iframe. the source for the iframe is page.php with a query…
Paddy Hallihan
  • 1,624
  • 3
  • 27
  • 76
-1
votes
1 answer

OPTIONS request works in chrome fails in safari

I'm at the end of my rope on this one... i'm running into a cors issue in safari related to a content-type header. I own the backend and have confirmed it is returning "*" for Access-Control-Allow-Headers. Anyone have any ideas what this could…
vv1z
  • 467
  • 4
  • 8
-1
votes
1 answer

How can I restrict access to a PHP file so that it can only be reached via iframe in my server?

I have a content.php file on my server that I need to load in an iframe on another page mask.php. This works just fine but I do not want content.php to be reachable at mydomain.com/content.php, only at mydomain.com/mask.php via iframe. Is there a…
jparty
  • 68
  • 8
-1
votes
1 answer

Ajax HtmlEditorExtender - Insert image pops up login box

I have an Intranet web site that uses Windows Authentication, so users already logged in are not ask for credentials when accessing the site. I added an Ajax HTML editor extender with "Insert Image" tool but some users who can access the site with…
NoBullMan
  • 2,032
  • 5
  • 40
  • 93
-1
votes
2 answers

AWS IAM vs custom access control

I'm considering AWS IAM vs usual ACL (django-guardian, passport.js, ...) to manage permissions and monitor the costs per user on my current project. I wonder if IAM can be used to manage authorization of the application users or if it is only aimed…
-1
votes
1 answer

XACML issue with editing policy

I would like to get some help with a ABAC, XACML project i have, where i'm trying to get a request and response back from the server, while talking to it through a PHP script as seen below.
chr0nk
  • 27
  • 7
-1
votes
1 answer

Access control modifiers in local classes - why don't they work?

I have a local class declared in a method, whose fields are declared as being private. However, I am still able to access them directly from the body of the enclosing method - why is this? As a side note, I have declared all of the fields in an…
Lord Cat
  • 401
  • 4
  • 13
-1
votes
1 answer

How to resolve the error 'Cross-Origin Request Blocked' when I call a web service from my AngularJS code?

When I call a web service (using PUT method) from my AngularJS code I got following error in Firebug's console (with exclamation mark at the beginning): Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at…
PHPLover
  • 1
  • 51
  • 158
  • 311
-1
votes
2 answers

Initialize property of type immutable dictionary in Swift init()

I would like to initialize an immutable dictionary by calculating its values in init(). I currently have: class MyClass { var images: [String: UIImage] func init() { images = [:] for // ... loop over strings //…
Drux
  • 11,992
  • 13
  • 66
  • 116