What does [Authorize(Users = "*")] mean in asp.net mvc.? Also please explain [Authorize(Users = "")] and [Authorize(Users = "?")].
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To authorize all users, just omit using the
[Authorize]attribute alltogether. To authorize authenticated users, use the[Authorize]attribute. To authorize specific roles or users, that is when you’ll have[Authorize (Users = "someuser")]or[Authorize (Roles = "somerole")].