roles

Authentication, Authorization, User and Role Management and general Security in .NET

风格不统一 提交于 2019-12-03 01:53:58
问题 I need to know how to go about implementing general security for a C# application. What options do I have in this regard? I would prefer to use an existing framework if it meets my needs - I don't want to re-invent the wheel. My requirements are as follows: the usual username/password authentication managing of users - assign permissions to users managing of roles - assign users to roles, assign permissions to roles authorization of users based on their username and role I am looking for a

MongoDB “root” user

这一生的挚爱 提交于 2019-12-03 00:35:36
问题 Is there a super UNIX like "root" user for MongoDB? I've been looking at http://docs.mongodb.org/manual/reference/user-privileges/ and have tried many combinations, but they all seem to lack in an area or another. Surely there is a role that is above all the ones listed there. 回答1: While out of the box, MongoDb has no authentication, you can create the equivalent of a root/superuser by using the "any" roles to a specific user to the admin database. Something like this: use admin db.addUser( {

How to add Roles to Windows Authentication in ASP.NET Core

假如想象 提交于 2019-12-02 18:55:16
I created an asp.net core project in visual studio 2015 with windows authentication. I can't figure out how to add roles to the Identity. I have a table with usernames for the windows account. And when the user opens the website the user is added to the Identity (I assume that's what happens, because I can display the username by User.Identity.Name) and I want to pull out Roles from another table and assign them to the user, is this possible? Or perhaps is there a better way to do it? (Why?, How?) I couldn't find any examples specific examples related to windows authentication, but I have read

Preferred database design method for assigning user roles? (Hats vs. Groups)

萝らか妹 提交于 2019-12-02 18:37:31
I have medium sized MySQL database with a primary "persons" table which contains basic contact information about every human being connected to the theatre and theatre school for which I am responsible for maintaining and developing a number of web applications. Some persons are just contacts - that is, their "persons" table record is all the information we need to store about them. Many others though have to be able to assume different roles for a variety of systems. Of these, most start out as students. Some start as employees. People who are students can become interns or performers;

unable to add roles to user with meteor using 'roles' package

烂漫一生 提交于 2019-12-02 18:25:36
I'm trying to use the 'roles' package available on Atmosphere but I can't get it to work with Accounts.onCreateUser(), I can get the example on github. When I register a user, I want to add a role to them, when I test whether the role is assigned, it's not picking it up. Here's my code /server/users.js Accounts.onCreateUser(function(options, user){ var role = ['admin']; Roles.addUsersToRoles(user, role); return user; }); /client/page.js Template.hello.events({ 'click input': function () { var loggedInUser = Meteor.user(); if (Roles.userIsInRole(loggedInUser, ['admin'])) { console.log("Hi Admin

Group and acl on Spring Security

一曲冷凌霜 提交于 2019-12-02 17:48:31
I want to use Spring Security to manage user, group and permissions. I want to use ACL to secure my domain objects but I can't find a way to assign a group to an acl. For example: I've got users and groups. Each group can have the following securities: - manage forums (can be a role like ROLE_FORUM_MANAGER ) - edit a specific forum (acl on the specific forum). Moreover, Groups are defined by users which have role ROLE_PERMISSION_MANAGER . BUT all groups defined by this user can only be edited and managed by this user. So group are attached to a user. Exactly, imagine that user creates a google

MongoDB “root” user

耗尽温柔 提交于 2019-12-02 14:11:45
Is there a super UNIX like "root" user for MongoDB? I've been looking at http://docs.mongodb.org/manual/reference/user-privileges/ and have tried many combinations, but they all seem to lack in an area or another. Surely there is a role that is above all the ones listed there. WiredPrairie While out of the box, MongoDb has no authentication, you can create the equivalent of a root/superuser by using the "any" roles to a specific user to the admin database. Something like this: use admin db.addUser( { user: "<username>", pwd: "<password>", roles: [ "userAdminAnyDatabase", "dbAdminAnyDatabase",

Authentication, Authorization, User and Role Management and general Security in .NET

一世执手 提交于 2019-12-02 14:04:57
I need to know how to go about implementing general security for a C# application. What options do I have in this regard? I would prefer to use an existing framework if it meets my needs - I don't want to re-invent the wheel. My requirements are as follows: the usual username/password authentication managing of users - assign permissions to users managing of roles - assign users to roles, assign permissions to roles authorization of users based on their username and role I am looking for a free / open-source framework/library that has been time-tesed and used by the .Net community. My

ASP.NET Roles and Profiles: best way to query for collection of users who match custom profile property?

戏子无情 提交于 2019-12-02 12:13:11
问题 ASP.NET 2.0 membership, roles, and profiles is the cat's meow. The API for roles supports handy methods like GetAllUsersInRole("MyNewsletterSubscriber"), which will return a collection of people in the "MyNewsletterSubscriber" role. I am wondering what the best way to return a collection of people with custom ASP.NET Profile properties might be. So for example, I might create one custom profile property called IsNewsletter1SubscriptionUserSelectionTextOnly and another custom profile property

C# amo get roles complete

雨燕双飞 提交于 2019-12-02 09:40:41
I'm working on a SSAS project in which I, amongst other things, need to get a complete list of users for a tabular cube, in C#. Currently I have it working in such a way that I can get the roles, but the data is incomplete. When I call the Server.Database.Roles (simplified for readability) property and enumerate through it I only get ID, Name and CreatedTimeStamp. What I am missing, which is crucial, is Members, CellPermissions (DAX Filters) and the permissions for those members. The permissions (read/write/administrator) I am currently looking for in Server.Database.Cube but the