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
20
votes
5 answers

Cross-Origin request warning for google fonts

I am using Google Webfonts on my website. In the console on Chrome I get the following warning: Blink is considering rejecting non spec-compliant cross-origin web font requests: …
harryg
  • 23,311
  • 45
  • 125
  • 198
19
votes
4 answers

Why does Mercurial return "Abort: Access is Denied" when trying to push a repository?

I'm running into a problem with a user not being able to push his commits into a Mercurial repository and am perplexed as to why it's not working for him. I've tried several things to figure out what's up, Googling doesn't turn up anything…
user656698
19
votes
1 answer

Access Control for Swift Extensions

Swift Programming Language has this to say about access control for extension: You can extend a class, structure, or enumeration in any access context in which the class, structure, or enumeration is available. Any type members added in an…
Boon
  • 40,656
  • 60
  • 209
  • 315
19
votes
6 answers

Swift - How can I override an extension method in a concrete subclass

I have an extension on UIView implementing a protocol protocol SomeProtocol { var property : Int } extension UIView : SomeProtocol { var property : Int { get { return 0 } set { // do nothing …
Avba
  • 14,822
  • 20
  • 92
  • 192
18
votes
2 answers

How to block access to Tomcat listening port, and allow localhost only?

I have an application running on Tomcat and listening on port 8080. I made the redirect changes on the Apache level (httpd) to provide my users with the ability to only type http://app instead of http://app:8080. Now I want to block access…
nav.jdwdw
  • 921
  • 2
  • 9
  • 15
18
votes
3 answers

Granular access to directories within monorepo

I've been reading about the advantages of monorepos, but haven't yet found a mitigation for the problem of sharing parts of a repo: Let's say an organization has a monorepo for a client/server web application. They hire a contractor to work on the…
Dan Dascalescu
  • 143,271
  • 52
  • 317
  • 404
17
votes
4 answers

How to display required user roles (access control information) in Swagger UI for Spring's endpoints?

I have a rest api made in Spring and am using Swagger for documentation. Recently a token based authentication was implemented. In the token, there are (internal) user's roles (authorities). Each controller is annotated with a couple of Swagger…
Jakub Kvba
  • 501
  • 1
  • 6
  • 14
17
votes
6 answers

the protected and private member variables in C++ inheritance

I am a newbie to C++, I have a question regarding to the c++ protected and private members in inheritance. If a class is public inherits a based class, does the protected and private member variable will be part of derived class? For example: class…
ratzip
  • 1,571
  • 7
  • 28
  • 53
16
votes
3 answers

Difference between fileprivate and private extension?

Swift 3.0 I know that fileprivate access level modifier limited using of function/property to source file where it was declared and private - limited to lexical scope where was declared. But it seems that this rule not apply for extensions. E.G.…
Bohdan Savych
  • 3,310
  • 4
  • 28
  • 47
16
votes
3 answers

Angular POST cross origin error while POSTMAN works

I try to POST from my angular login service: $http.post('https://xyz/login', { headers: { 'Content-type': 'application/json', 'Accept': 'application/json', …
user3712353
  • 3,931
  • 4
  • 19
  • 33
16
votes
7 answers

Browser application & local file system access

I want to enhance my browser-based web application with functionality that enables management of local files and folders. E.g. folder tree structures should be synchronized between local workstation and server via HTTP(S). I am aware of…
Beyond HTML
16
votes
2 answers

What MongoDB user privileges do I need to add a user to a new/another mongo database?

I have enabled authentication in the MongoDB config file after adding one admin user with the following privileges: userAdmin and userAdminAnyDatabase. Now I connect with this user to the db where this admin user is defined (otherwise I get…
Gabriel Petrovay
  • 20,476
  • 22
  • 97
  • 168
16
votes
8 answers

How to use the AccessDecisionManager in Symfony2 for authorization of arbitrary users?

I'd like to be able to verify whether or not attributes (roles) are granted to any arbitrary object implementing UserInterface in Symfony2. Is this possible? UserInterface->getRoles() is not suitable for my needs because it does not take the role…
Adrian Günter
  • 903
  • 2
  • 11
  • 23
15
votes
4 answers

What is the simplest way to restrict access to a static website using social auth

I have a static website composed of html/css/javascript files. The website is automatically generated and updated frequently. Instead of authorizing access to the website with a username/password (basic auth), I would like to have users authenticate…
el_tigro
  • 1,099
  • 2
  • 10
  • 22
15
votes
3 answers

Get controller and action name from AuthorizationHandlerContext object

Hi I have a custom requirement handler with accepts the AuthorizationHandlerContext context parameter When i debug, i can see that the context object contains Context.Resources.ActionDescription.ActionName But when writing the code i cant go…
flexxxit
  • 2,440
  • 5
  • 42
  • 69
1 2
3
91 92