Wrox Programmer Forums
|
BOOK: Professional ASP.NET MVC 5
This is the forum to discuss the Wrox book Professional ASP.NET MVC 5 by Jon Galloway, Brad Wilson, K. Scott Allen, David Matson; ISBN: 978-1-118-79475-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET MVC 5 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 30th, 2016, 05:41 AM
Registered User
 
Join Date: Apr 2016
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default granting roles to users

in chapter 7 it has been discussed how to constrain executing some functions to some roles using Authorize now has it been discussed how to create such roles and assign these roles to specific users??!!
I don't see such and important topic !
If it has been discussed in which page?
 
Old June 30th, 2016, 09:06 AM
Authorized User
 
Join Date: Jan 2013
Posts: 23
Thanks: 1
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by koosha_pooyeshgar View Post
in chapter 7 it has been discussed how to constrain executing some functions to some roles using Authorize now has it been discussed how to create such roles and assign these roles to specific users??!!
I don't see such and important topic !
If it has been discussed in which page?
It is only mentioned in passing. Webforms has something, the WSAG(?) that you could using during development to set up roles. You can do that now via the SQL table for users, which I don't know enough to say much about right now.

In production roles are set up by database administrators. However, that does not mean that developers don't have to know a little about it, for setting it up and for testing.

I think at the time the book was published Microsoft was developing Windows Identity and moving away from membership, which is what MVC4 used. So they probably had to trash a well-crafted and fun chapter on roles, and replace it with..With what, since they couldn't say what to write about? So there is little in here about how to set it up.

We are supposed to be moving into using Windows Identity for claims, which are better than roles. But I think there are still roles, but I have not gotten my head wrapped around this yet, so I will be quiet (yeah, right! Look at this post!) about it. There are other ways of setting roles such as Active Directory. You might want to do some cruising on the internet to find out how to set users up in roles for testing purposes. You can spend months learning this stuff.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Managing roles and users on Host wassim84 BOOK: Beginning ASP.NET 4.5 : in C# and VB 1 April 5th, 2015 03:53 PM
Users and roles avidan BOOK: Beginning ASP.NET 4.5.1 : in C# and VB 2 February 25th, 2015 11:04 AM
Setting permissions for roles and users sophia ASP.NET 4 General Discussion 7 January 4th, 2012 09:40 AM
Selecting Users of particular Roles snbelani BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 1 June 2nd, 2008 04:14 PM
roles and users in bugbase mrco BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 3 February 6th, 2007 12:32 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.