authorization

Is there a way to make OpenSSO/OpenAM talk to Database for its authentication and authorization?

我怕爱的太早我们不能终老 提交于 2019-12-24 10:57:04
问题 We want to use OpenSSO for our authentication and authorization needs but would prefer it talking to database instead of the default LDAP datastore. We found that there is an experimental Database datastore present in the OpenAM 9.0 release. However, it seems to be just concerned with authentication and user lifecycle management. There is no provision for storing entitlements information in the database datastore. We would want to keep the entire authentication and authorization info in

Zend Framework 2 - ZFCUser - How to exclude landing page from auth

≡放荡痞女 提交于 2019-12-24 08:24:58
问题 I'm using ZF2 in combination with ZFCUser and bjyauthorize . I have a landing page which should be globally accessable. All other pages need to be behind a login. At first I blamed bjyauthorize for not letting guest users access my landing page. But after some discussions it seems that ZFCUser is blocking the way. My question is: How can I tell ZFCUser not to block one page/action? Edit: My Application/Module.php looks like in this post. When I add my app myApp to the whitlist, I can access

ASP.NET Authorization inherits rules

无人久伴 提交于 2019-12-24 07:13:04
问题 I am trying to protect a (sub)directory in my ASP.NET website that contains files (Videos, documents etc.) So I created a Web.config file: <?xml version="1.0"?> <configuration> <system.web> <authorization> <deny users="?"/> <allow roles="Administrator"/> <allow roles="Author"/> <allow roles="Report"/> </authorization> </system.web> </configuration> These roles correspond with those defined in the asp.net roles table in my database. I opened up IIS7 to check if the authorization rules were

Authentication and Authorization in servlets

不问归期 提交于 2019-12-24 06:48:41
问题 I am using jboss server. I want to do BASIC authentication using web.xml file. How do I do that? 回答1: The tutorial on How to Configure JBoss for Basic Authentication should help you in this 回答2: The steps are Add security-constraint in web.xml for secure pages Apply login-config in web.xml In jboss-web.xml apply security-domain Create properties files for user and roles The following link explains this pretty well with an example https://community.jboss.org/wiki/BASICAuthentication users

.net core [Authorize] using ClaimsIdentity with AAD groups

与世无争的帅哥 提交于 2019-12-24 06:36:27
问题 I am seeing this in my ((System.Security.Claims.ClaimsIdentity)User.Identity).Claims : How do I make use of these group GUID's I am getting from our Azure AD (to secure the endpoint based on group membership)? [Authorize(Roles="<group guid here>")] or [Authorize("<group guid here>")] Or do I need to set something up in the startup.cs file? 回答1: You could use policy in asp.net core , use an attribute with a named policy then you define the policy in startup to require group claim and set

How to allow only an IP/range access to AWS API Gateway resources

戏子无情 提交于 2019-12-24 06:34:05
问题 How best can I restrict access to certain routes in AWS API gateway by IP? I want to allow only my ECS cluster to access certain routes in API gateway. I tried putting the ECS NAT gateway, the VPC CIDR range in aws:SourceIp but always get denied. I even tried my personal computer public IP address ... same results ... Is this the correct way? Or should I try IAM authorizers? The downside with IAM authorizer is I need to sign my API calls? Perhaps using the API Gateway SDK? Which means code

Authorization in node.js

早过忘川 提交于 2019-12-24 06:29:37
问题 Coding a news website,I'm trying to make authorization so that only the author (who posted the article) is able to edit and delete it (these buttons appear at the bottom of the page and are visible to all the users). But then there are certain news/websites which don't have a login/sign up option. For example : http://www.denofgeek.com/us . Because they have no authentication, does this mean that they have no authorization? How are they able to edit/delete the articles if the settings for the

Apache2 Reverse Proxy with authentication over OpenID Connect and authorization over ldap

拜拜、爱过 提交于 2019-12-24 06:04:44
问题 I'm trying to setup a reverse proxy that requires authentication against an OpenID Connect Identity Provider. The User then grants the reverse proxy access to his data. Some applications behind the proxy are only accessible by the user if he is the member of specific LDAP groups. Sadly the applications are the dump and cannot authorize themselves, so the reverse proxy must handle that part. It wasn't so hard to setup the authentication part with mod_auth_openidc. What I struggle with is the

pundit policies with namespaces

ε祈祈猫儿з 提交于 2019-12-24 02:33:28
问题 I have Question model in my application. app/models/question.rb class Question < ActiveRecord::Base ... end I'm using 'pundit' gem for authorization. There are two controllers to do some changes in questions: one for registered user, one for admin. I'm trying to create separate policies for controllers. app/controllers/questions_controller.rb class QuestionsController < ApplicationController ... end app/policies/question_policy.rb class QuestionPolicy < ApplicationPolicy ... end app

Facebook iframe application after authorization redirect to facebook page tab

安稳与你 提交于 2019-12-24 02:13:22
问题 I have problems with redirecting user after authorization back to the app tab in facebook page. I always end up in standalone application canvas page. Edit: It was meant to be an app in tab within a Fb page. I wanted to do the authorization and then to redirect user back to page tab. But when you do this the tab looks just like before and it seems to user like an error because he came from authorization and the app in tab looks the same. He has to click on it to get some kind of response or