whats the best way to manage Roles and Access Rules?http://forums.asp.net/t/1798747.aspx/1?whats+the+best+way+to+manage+Roles+and+Access+Rules+Fri, 18 May 2012 22:25:33 -040017987474959445http://forums.asp.net/p/1798747/4959445.aspx/1?whats+the+best+way+to+manage+Roles+and+Access+Rules+whats the best way to manage Roles and Access Rules? <p>am i allowed to make my own form and insert to this table?<br> <br> if i insert new role on this table will it change the website webconfig?<br> <br> should i just manage the roles on Website ASP.NET Configuration or webconfig? or my own form that manages the aspnet_Roles table?<br> <br> what do most companies do?</p> 2012-05-01T08:16:27-04:004959480http://forums.asp.net/p/1798747/4959480.aspx/1?Re+whats+the+best+way+to+manage+Roles+and+Access+Rules+Re: whats the best way to manage Roles and Access Rules? <p>hmmm seems access Rules isnt stored in the ASPNETDB<br> <br> does that mean i always have to either edit webconfig or use the Website ASP.NET Configuration to manage rules?</p> 2012-05-01T08:50:39-04:004959510http://forums.asp.net/p/1798747/4959510.aspx/1?Re+whats+the+best+way+to+manage+Roles+and+Access+Rules+Re: whats the best way to manage Roles and Access Rules? <p>Hi,</p> <p>will you explaing in more detail what do u want to do?</p> 2012-05-01T09:10:43-04:004959601http://forums.asp.net/p/1798747/4959601.aspx/1?Re+whats+the+best+way+to+manage+Roles+and+Access+Rules+Re: whats the best way to manage Roles and Access Rules? <p>id like to know how other developers manage the membership, access role and rules<br> <br> from the book im reading it taught me that i have to use Website ASP.NET configuration and so i now know one way to do it<br> <br> i want to do it differently than the book tho.. instead of adding the user by using the ASP.NET Configuration i add users from the builtin Register.aspx on the Account folder of an ASP.NET Web Site project template.<br> so i already have the means of adding new users to the ASPNETDB</p> <p>what i need to manage now is the roles and rules. <br> or do most developers just manage the authorization Roles and Rules using the ASP.NET Configuration and webconfig file?</p> 2012-05-01T09:53:48-04:004975556http://forums.asp.net/p/1798747/4975556.aspx/1?Re+whats+the+best+way+to+manage+Roles+and+Access+Rules+Re: whats the best way to manage Roles and Access Rules? <p>is there any way to delete a post?<br> i want to start a new one cause it seems this will forever be unresolved.<br> seems only the new posts are noticed by readers..</p> 2012-05-11T01:36:54-04:004975821http://forums.asp.net/p/1798747/4975821.aspx/1?Re+whats+the+best+way+to+manage+Roles+and+Access+Rules+Re: whats the best way to manage Roles and Access Rules? <p>Create &nbsp;an enumerator file and you can get your roles from that file</p> <pre class="prettyprint">namespace MyProject.Enumerator { public enum Role { SuperAdmin = 1, Admin = 2, Manager = 3, seller = 4, Buyer = 5 } }</pre> <p></p> <p>Just save the roleID into DB</p> <p>OR Create a master table for all roles and access from there.<br> <br> </p> 2012-05-11T05:50:56-04:004977417http://forums.asp.net/p/1798747/4977417.aspx/1?Re+whats+the+best+way+to+manage+Roles+and+Access+Rules+Re: whats the best way to manage Roles and Access Rules? <p>i didnt get what this is for<br> <br> what i want to do know the best way to Insert, Update and Delete Roles and also Access Rules<br> <br> i know i can manualy open ASP.NET Configuration and add roles and access rules<br> <br> is that the only way?<br> <br> i think its kinda inefficient to open the project and access the ASP.NET Config from there<br> so id like to know if theres better way that is more preffered by developers<br> <br> i also know i can change the access rules by opening the webconfig file<br> <br> can you guys tell me if its the only way then if it is then i have to work with if<br> and if it is not please tell me a better way and more prefered by other developers to use<br> <br> thanks</p> 2012-05-12T04:59:42-04:004977457http://forums.asp.net/p/1798747/4977457.aspx/1?Re+whats+the+best+way+to+manage+Roles+and+Access+Rules+Re: whats the best way to manage Roles and Access Rules? <p>nope jrtibayan, ofcource theres alot of ways to do that.</p> <p>Orchard CMS is a great one, you can find&nbsp;how Orchrd manage thier roles.</p> <p>You can Implement your own <a href="http://msdn.microsoft.com/en-us/library/8fw7xh74.aspx"> Role Provider</a>&nbsp;and <a href="http://msdn.microsoft.com/en-us/library/f1kyba5e.aspx"> Membership Provider</a>.</p> 2012-05-12T05:46:37-04:004987280http://forums.asp.net/p/1798747/4987280.aspx/1?Re+whats+the+best+way+to+manage+Roles+and+Access+Rules+Re: whats the best way to manage Roles and Access Rules? <p>In ASP.NET,<span id="mt1" class="sentence">Role management helps you manage authorization, which enables you to specify the resources that users in your application are allowed to access.<span id="mt2" class="sentence">Role management lets you treat groups of users as a unit by assigning users to roles such as manager, sales, member, and so on.</span></span></p> <p><span class="sentence"><span class="sentence"><span id="mt4" class="sentence">After you have established roles, you can create access rules in your application.<span id="mt19" class="sentence">A typical use is to then create a set of pages that you want to restrict to certain users.</span><span id="mt20" class="sentence">Often you isolate these restricted pages in a folder by themselves.</span><span id="mt21" class="sentence">Then you can establish rules that grant and deny access to restricted folders.</span><span id="mt22" class="sentence">For example, you can configure the site so that members or managers have access to the pages in the restricted folder and all other users are denied access.</span><span id="mt23" class="sentence">If an unauthorized user tries to view a restricted page, the user either sees an error or is redirected to a page that you specify.</span></span></span></span></p> <p><span class="sentence"><span class="sentence"><span class="sentence"><span class="sentence">If you want to insert, update and delete roles, ASP.NET&nbsp;<span class="sent_en"><span class="124-5-1" title="">contains</span> <span class="124-9-1" title="">powerful</span> <span class="124-3-1">role</span> <span class="124-4-1">management</span> <span class="124-10-1" title="">API. <span class="sent_en"><span class="31-1-1" title="">Using</span> <span class="31-2-1" title=""> those</span> <span class="31-3-1" title="">API, you can create,delete role, add user to role,find user in role ect.<span class="sent_en"><span class="92-1-1" title="">Specific</span> <span class="92-2-1" title="">usage</span><span class="92-3-1" title="">,</span> <span class="92-5-1" title="">please</span> <span class="92-7-1" title=""> read</span> <a href="http://msdn.microsoft.com/en-us/library/system.web.security.roleprovider.aspx"> RoleProvider Class</a></span></span></span></span></span></span></span></span></span></p> <p><span class="sentence"><span class="sentence"><span class="sentence"><span class="sentence">If you&nbsp;want<span class="sent_en"> to&nbsp;enable <span class="43-3-1" title="">role</span> <span class="43-1-1" title=""> management for your asp.net application,you need to do the following things:</span></span></span></span></span></span></p> <p><span class="sentence"><span class="sentence"><span class="sentence"><span class="sentence"><span class="sent_en"><span class="43-1-1" title="">1. Configure Role Store </span></span></span></span></span></span></p> <p><span class="sentence"><span class="sentence"><span class="sentence"><span class="sentence"><span class="sent_en"><span class="43-1-1" title="">2. Configure Role Provider in Web.config </span></span></span></span></span></span></p> <p><span class="sentence"><span class="sentence"><span class="sentence"><span class="sentence"><span class="sent_en"><span class="43-1-1" title="">3. Create and Assign Roles <a href="#paght000013_step4"></a></span></span></span></span></span></span></p> <p><span class="sentence"><span class="sentence"><span class="sentence"><span class="sentence"><span class="sent_en"><span class="43-1-1" title="">4. Perform Role-Based Authorization</span></span></span></span></span></span></p> <p><span class="sentence"><span class="sentence"><span class="sentence"><span class="sentence"><span class="sent_en"><span class="43-1-1" title="">For more details,please read <a href="http://msdn.microsoft.com/en-us/library/ff647401.aspx#paght000013_step3"> Use Role Manager in ASP.NET 2.0</a></span></span></span></span></span></span></p> <p><span class="sentence"><span class="sentence"><span class="sentence"><span class="sentence"><span class="sent_en"><span class="43-1-1" title=""></span></span></span></span></span></span></p> <p><span class="sentence"><span class="sentence"><span class="sentence"><span class="sentence"></span></span></span></span></p> 2012-05-18T14:34:26-04:004987680http://forums.asp.net/p/1798747/4987680.aspx/1?Re+whats+the+best+way+to+manage+Roles+and+Access+Rules+Re: whats the best way to manage Roles and Access Rules? <p>This Chris's video walks through complete configuration</p> <p><a href="http://www.asp.net/web-forms/videos/how-do-i/how-do-i-secure-my-site-using-membership-and-roles">http://www.asp.net/web-forms/videos/how-do-i/how-do-i-secure-my-site-using-membership-and-roles</a></p> 2012-05-18T22:25:33-04:00