authorization

Can CLIENT-CERT auth-method be used with a JDBC realm within tomcat?

蹲街弑〆低调 提交于 2019-12-09 17:41:32
问题 The JDBC realm specifies a table structure for authentication which contains the columns defined by the attributes userNameCol and userCredCol. These correspond to user and password which makes sense for FORM or BASIC auth-methods. They are interactive and require these two pieces from the client's user. What comes back from the certificate? What would an example of the data stored in userNameCol and userCredCol look like? Is there an alternative table structure for the realm in this case? PS

Any frameworks on Authentication & Authorization for Windows Form Application?

拥有回忆 提交于 2019-12-09 17:34:46
问题 I'm a C# developer. I develop both Windows & Web Applications. I would like to build an Winforms application that has a role-based system. All users must in role/group(s). Then we assign permissions like "View, Add, Update,.." to role/group. The role/group is dynamic, so we let users to define it. Is there any frameworks and good sample projects to implement it? 回答1: I usually roll my own, since the .NET Framework is pretty full-featured in this regard, but you might try the MS Authorization

LDAP authorization

牧云@^-^@ 提交于 2019-12-09 16:43:13
问题 I'm starting to implement authorization and authentication mechanism using LDAP, for some existing system. On the development stage, I'm facing a difficult design decision: where should user roles be stored? If I used RDBMS, it looks like there will be three tables: user , role and user_role to map roles and users. Please suggest available solutions. I think about storing the user roles in DB and users in LDAP, but not sure if that is the best solutions. I use JBoss as my application server.

Authorize attribute in MVC order, priority and function question

£可爱£侵袭症+ 提交于 2019-12-09 13:36:45
问题 There is something in the roles I don't exactly get. using the [Authorize] attribute When you have the [Authorize] attribute on the controller and on the action: When a role is in both, this role will have access When a role is only defined at the Controller, but not at the Action, no access When a role is only defined at the Action, but not at the Controller, no access I get that, that's logical. You need access to the controller before you can run an action. What I dont get is why this

Delphi DataSnap authorization not repecting TRoleAuth attribute

假装没事ソ 提交于 2019-12-09 12:57:29
问题 I am trying to implement authorization in a Delphi XE DataSnap application. I broke this down into a very simple example, but still do not see the effects of the TRoleAuth attribute for a method or class. Here is a simple DSServerMethods class that includes the generated sample methods. The class has been decorated with the guest and anyone authorized roles, and the unwelcome denied role. The ReverseString method has been decorated with the readonly denied role: type [TRoleAuth('guest,anyone'

Apply AuthorizeAttribute to a controller class and to action simultaneously

妖精的绣舞 提交于 2019-12-09 09:46:39
问题 Is There one way to make a [Authorize] attibute be ignored in one action in a controller class that has a Authorize attribute? [Authorize] public class MyController : Controller { [Authorize(Users="?")]//I tried to do that and with "*", but unsuccessfuly, public ActionResult PublicMethod() { //some code } public ActionResult PrivateMethod() { //some code } } Just the PrivateMethod() should have authentication required, but it has been required too. PS: I wouldn't like to make my custom

Authorize an entire security group to perform an Action in ASP.Net MVC

无人久伴 提交于 2019-12-09 08:20:33
问题 I'd like to authorize users to perform specific actions within my controllers. I've found the ASP.NET tutorial which explains how to allow individual users to perform specific actions but can this be extended to security groups? For example, would everyone belonging to the "domain\group" security group have access to the GetSecrets action if the code looked like this: [Authorize(Users="domain\group")] public ActionResult GetSecrets() { return View(); } If not, how would I do this? 回答1: You

What's the server-side equivalent of $.ajax() in Google Apps Scripts?

大憨熊 提交于 2019-12-09 06:54:47
问题 I want to perform an HTTP request from server-side code in a Google App Script with an Authorization header. Is there an App Script API for sending HTTP requests? What's the equivalent of this code in a Google Apps Script? var api = "URL"; $.ajax({      type: 'GET',      url: api,      contentType: 'application/json',      dataType:'json',      data: {},      beforeSend: function(xhr) { xhr.setRequestHeader('Authorization', makeBaseAuth('username', 'password')); } }); 回答1: You can send HTTP

RBAC - How to implement per instance access control? (DDD)

懵懂的女人 提交于 2019-12-09 04:46:28
问题 In my DDD application written in javascript (Node.js), I am stumbling on the implementation of the authorization generic subdomain. I checked on the RBAC / ACL authorization models on how to implement this, but they don't seem to have per-instance permissions, which I need. From what I understand, RBAC has role-based authorizations. Users are assigned to roles. Roles are hierarchical and inherit permissions. Roles can have multiple permissions. Permissions allow commands to be executed on

Can't auth to Facebook with iOS SDK and native Facebook application

半世苍凉 提交于 2019-12-08 23:34:15
问题 What I have and what're problems occurred: I've one Facebook account with game application (every day people's playing) I've one more Facebook account with test application, that created recently with default settings. I've native Facebook application on my iPod I'm developing iOS application which uses Facebook iOS SDK. Invalid flow: If I use App ID/API Key from first application, I open my application and trying to login. Facebook SDK opens native FB application and show me that screen I