roles

SSRS Security add many users

爷,独闯天下 提交于 2019-12-01 07:42:37
问题 I have a list of over 300 users I want to add to SSRS Security as "Browsers". I was wondering, is there a way to do this programmatically and not by doing New Role Assignment for each and every user? 回答1: Assuming these users have an Active Directory profile: Create a AD group "SSRSBrowsers". Add the 300 to that group (preferably before the Persians arrive). Create an SSRS browse-only security entry for DOMAIN\SSRSBrowsers. Profit. 来源: https://stackoverflow.com/questions/22671403/ssrs

how to enable and disable button based on user role?

半世苍凉 提交于 2019-12-01 07:15:19
I have a role called 'member' and another 'admin' in Asp.Net website. I did before, that button should be visible or not and i am successful in that,but,i am not able to get the proper code(aspx.cs) to disable the button so that it may be in view but not at all accessible. <asp:Button ID="Button4" runat="server" PostBackUrl="~/report.aspx" Text="print in report format" Width="173px" Enabled='<%# HttpContext.Current.User.IsInRole("Admin") %>' /> i want that whenever a member login then button "report" should be disabled for him. You have to set the Button.Enabled property value to according to

Spring Security 3.1.4 taglib authorize/authentication are not working with role hierarchy in JSF 2.2 on Tomcat 7

最后都变了- 提交于 2019-12-01 06:09:30
问题 The roleHeirarchies are taken into account for Web Security Expressions defined as intercept URLs via the http namespace but not in expressions using the JSP Authorize taglib. I read a lot of stuffs already... ref1 ref2 ref3 ref4 ref5 ref6 ****EDIT:**** Ref1 and Ref6 mention stuffs about a problem with filters order and security context not available in jsp...(by the way,i'm using jsf2) maybe there is something to dig ... EDIT 2: Is JSF handling security tag lib ? I read this and try that

ASP.NET MVC Roles without database (and without role provider)

廉价感情. 提交于 2019-12-01 05:35:59
问题 I have a super simple ASP.NET MVC application that uses RpxNow (OpenID) to allow users to login. I now want to let users edit their own account and provide administrator access to edit anyone's account. I have two separate "Edit Account" views: ~/account/edit/ ~/account/edit/1 The first loads the account details based on the logged in user. The second loads the account details using the supplied AccountId. The first would be for standard users, and the second for an administrator. Firstly I

Adding roles to the 'CreateUserWizard'

最后都变了- 提交于 2019-12-01 02:24:50
问题 Hi (I'm pretty new to this), Is it possible to add roles to the 'CreateUserWizard' tool so that you tick boxes (or view roles in a drop down menu) and once one or more have been chosen, this information is added to the asp.net configuration automatically? I have the following code: <asp:CreateUserWizard ID="CreateUserWizard1" runat="server" BackColor="#F7F6F3" BorderColor="#E6E2D8" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" Height="260px" Width="568px">

Spring Security Role Hierarchy issues

自古美人都是妖i 提交于 2019-12-01 01:02:48
I am trying to enable role hierarchy voting in Spring Security when authenticating using Waffle NTML but having some unknown issues in that the inherited roles do not appear as authorities on the principal as expected preventing hasRole expressions in both the intercept urls and using the authorize jsp taglibs. I have been integrating waffle based on the following guide: https://github.com/dblock/waffle/blob/master/Docs/spring/SpringSecuritySingleSignOnFilter.md This works within the application as expected on its own using the standard RoleVoter but the problem starts when I try to customise

Spring boot how make a user role managing with jwt

人走茶凉 提交于 2019-11-30 20:02:18
问题 I'm writing a RESTful api with spring boot. I'm using spring boot, jersey, mongo db, swagger, spring boot security and jwt. I have written the models, the repositories for the requests to the DB. Now I have integrated the Security and jwt token. Now I need to discretize the role of the users, because a user cant call a route that need an admin priviledges. I have a route for login, it's return a token. This is the code of my SecurityConfig ... @Configuration @EnableWebSecurity public class

No service for type Identity.UserManager when using multiple identity users

孤街浪徒 提交于 2019-11-30 17:30:47
My setup Currently, I have two models that inherit from ApplicationUser , which inherits IdentityUser . The user classes are: public abstract class ApplicationUser : IdentityUser { [PersonalData] public string FirstName { get; set; } [PersonalData] public string LastName { get; set; } [NotMapped] public string FullName => $"{FirstName} {LastName}"; } public class StudentUser : ApplicationUser { [PersonalData] [Required] public string StudentNumber { get; set; } // A user belongs to one group public Group Group { get; set; } } public class EmployeeUser : ApplicationUser { } The ApplicationUser

Spring LdapAuthentication and Load roles from local database

人盡茶涼 提交于 2019-11-30 15:34:45
I have Spring Security configured to authenticate against LDAP server. <security:authentication-manager > <security:ldap-authentication-provider user-dn-pattern="uid={0}" /> </security:authentication-manager> After authentication I want to load roles from local database for the same user. How can I load local database roles using "ldap-authentication-provider"? If I add the second authentication provider as below: <security:authentication-manager > <security:ldap-authentication-provider user-dn-pattern="uid={0}" /> <security:authentication-provider ref="daoAuthenticationProvider" /> </security

dynamically mapping roles to controllers in ASP.Net MVC

喜你入骨 提交于 2019-11-30 15:21:32
I am currently hard coding the authorized roles in the filter in my MVC applications like so: [Authorize(Roles = "Administrator,Manager")] I'd like to eventually have a way to map the roles to each controller, so that the site admin can handle assigning what roles can perform each set of actions. string roles = DoSomethingToGetAllowableRoles(controllerName); [Authorize(Roles = roles)] I'm imagining that I need to have a database table that somehow keeps a listing of each controller, and then another table mapping the controllers to the roles. What I'd like is a page where I can list out each