Where authorization should implement in MVC4 ?

Sarbanjeet

I am build a decision based application for multilevel users and permissions. All permission can be assigned bu UI administrator. Is it right way to do ?

Where i should implement authorization ?

  • Global filters
  • Controller filters
  • Action Filters
  • Custom Authorization Attribute
  • Custom membership

If any other best approach and way to implement without using third party please let me know.

I am so confused with different authorization approaches

Amila

I am so confused with different authorization approaches

Everybody has been their at least once, you are not alone ;), But since .Net 4.5 things are getting a bit clearer to me.

Okay, There are many ways of implementing authorization for MVC application. It all depend on the application you are building. You most probably will have to implement the followings

  • Custom Membership provider
  • Custom Authorize Attribute

Please take a look at this blog post, which helped me to really understand how one should implement authentication and authorization for a MVC app. It explains about form authentication type and how to implement your own Authorize attribute that can be used instead of the built in Authorize attribute.

http://codeutil.wordpress.com/2013/05/14/forms-authentication-in-asp-net-mvc-4/

Actually, the above was the most explained blog that I found in my search for proper implementation of MVC authentication & Authorization during the past year or so. So a big thank you should go to the Author.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

where should I implement security/Authorization in n-tier architecture?

From Dev

ASP.NET, MVC4, authorization: users should see only own content

From Dev

IP Based User Authorization in MVC4

From Dev

MVC4 - claims based authorization with standard authorization attribute

From Dev

MVC4 - claims based authorization with standard authorization attribute

From Dev

Where should I implement my class method?

From Dev

where should I implement SeekBar.onSeekBarChangeListener?

From Dev

where should I implement SeekBar.onSeekBarChangeListener?

From Dev

how to implement datetimepicker in mvc4

From Dev

Should this MVC4 API call be async?

From Dev

MVC4 Partial View Ajax Load with Authorization

From Dev

Authorization using active directory role provider MVC4

From Dev

How should I implement a token based authorization API in Node.js and Redis?

From Dev

MVC 5 application - implement OAuth Authorization code flow

From Dev

In the Repository Pattern, where should I implement a Distinct method?

From Dev

Where should I implement the facebook login in a tab based app?

From Dev

where should i implement click function help me with code

From Dev

Where should implement the methods of AsyncTask class if have multiple classes in Android?

From Dev

Where should I implement onClick method in a NavigationDrawer Activity?

From Dev

Where should calculations be done in MVC?

From Dev

How to implement IEnumerator in MVC4 application with ViewModel

From Dev

MVC4 - Implement Cascading Multiselect List Boxes using Ajax

From Dev

MVC4 app - how to remove Entity Framework and implement SimpleMembershipProvider?

From Dev

How to Implement Dependent Dropdownlist in MVC4 Razor

From Dev

Should authorization be atomic with operation?

From Dev

PHP - Where to implement Session Logic in MVC?

From Dev

Where should the session object exist in MVC architecture?

From Dev

Where should the validation be, in the MVC layer or in the business engine?

From Dev

Where JCombBox items should be declared on a MVC pattern?

Related Related

  1. 1

    where should I implement security/Authorization in n-tier architecture?

  2. 2

    ASP.NET, MVC4, authorization: users should see only own content

  3. 3

    IP Based User Authorization in MVC4

  4. 4

    MVC4 - claims based authorization with standard authorization attribute

  5. 5

    MVC4 - claims based authorization with standard authorization attribute

  6. 6

    Where should I implement my class method?

  7. 7

    where should I implement SeekBar.onSeekBarChangeListener?

  8. 8

    where should I implement SeekBar.onSeekBarChangeListener?

  9. 9

    how to implement datetimepicker in mvc4

  10. 10

    Should this MVC4 API call be async?

  11. 11

    MVC4 Partial View Ajax Load with Authorization

  12. 12

    Authorization using active directory role provider MVC4

  13. 13

    How should I implement a token based authorization API in Node.js and Redis?

  14. 14

    MVC 5 application - implement OAuth Authorization code flow

  15. 15

    In the Repository Pattern, where should I implement a Distinct method?

  16. 16

    Where should I implement the facebook login in a tab based app?

  17. 17

    where should i implement click function help me with code

  18. 18

    Where should implement the methods of AsyncTask class if have multiple classes in Android?

  19. 19

    Where should I implement onClick method in a NavigationDrawer Activity?

  20. 20

    Where should calculations be done in MVC?

  21. 21

    How to implement IEnumerator in MVC4 application with ViewModel

  22. 22

    MVC4 - Implement Cascading Multiselect List Boxes using Ajax

  23. 23

    MVC4 app - how to remove Entity Framework and implement SimpleMembershipProvider?

  24. 24

    How to Implement Dependent Dropdownlist in MVC4 Razor

  25. 25

    Should authorization be atomic with operation?

  26. 26

    PHP - Where to implement Session Logic in MVC?

  27. 27

    Where should the session object exist in MVC architecture?

  28. 28

    Where should the validation be, in the MVC layer or in the business engine?

  29. 29

    Where JCombBox items should be declared on a MVC pattern?

HotTag

Archive