Friday, October 18, 2013

ASP.NET Identity for 4.5

ASP.NET membership has gone through many changes over the years. From simple membership to SQLProviders to OWIN, the needs of developers are constantly changing. .Net 4.5 has brought another change to the identity model. We have to let go of the assumption that users will log in by entering unique credentials to our application. Increasingly, users expect to leverage a single online identity to drive all of their web-based experiences (e.g. Facebook, Twitter, etc.) Developers should also want users to be able to log in with these social identities so that our applications can provide a rich and integrated experience to the users' online life.

Unit testing code should be a core concern for application developers. MVC is a great pattern and platform for those who want to unit test their code.  Now, you should easily be able to do that with the membership system. ASP.NET Identity was developed with the following goals (Verbatim from Microsoft):
  • One ASP.NET Identity system 
    • ASP.NET Identity can be used with all of the ASP.NET frameworks, such as ASP.NET MVC, Web Forms, Web Pages, Web API, and SignalR. 
    • ASP.NET Identity can be used when you are building web, phone, store, or hybrid applications.
  •  Ease of plugging in profile data about the user 
    • You have control over the schema of user and profile information. For example, you can easily enable the system to store birth dates entered by users when they register an account in your application. 
  •  Persistence control 
    • By default, the ASP.NET Identity system stores all the user information in a database. ASP.NET Identity uses Entity Framework Code First to implement all of its persistence mechanism. 
    • Since you control the database schema, common tasks such as changing table names or changing the data type of primary keys is simple to do. 
    • It's easy to plug in different storage mechanisms such as SharePoint, Windows Azure Storage Table Service, NoSQL databases, etc., without having to throw System.NotImplementedExceptions exceptions. 
  • Unit testability 
    • ASP.NET Identity makes the web application more unit testable. You can write unit tests for the parts of your application that use ASP.NET Identity. 
  • Role provider 
    •  There is a role provider which lets you restrict access to parts of your application by roles. You can easily create roles such as “Admin” and add users to roles. 
  • Claims Based 
    • ASP.NET Identity supports claims-based authentication, where the user’s identity is represented as a set of claims. Claims allow developers to be a lot more expressive in describing a user’s identity than roles allow. Whereas role membership is just a boolean (member or non-member), a claim can include rich information about the user’s identity and membership. 
  • Social Login Providers 
    • You can easily add social log-ins such as Microsoft Account, Facebook, Twitter, Google, and others to your application, and store the user-specific data in your application. 
  •  Windows Azure Active Directory 
    • You can also add log-in functionality using Windows Azure Active Directory, and store the user-specific data in your application. For more information, see Organizational Accounts in Creating ASP.NET Web Projects in Visual Studio 2013 
  • OWIN Integration 
    • ASP.NET authentication is now based on OWIN middleware that can be used on any OWIN-based host. ASP.NET Identity does not have any dependency on System.Web. It is a fully compliant OWIN framework and can be used in any OWIN hosted application.
    • ASP.NET Identity uses OWIN Authentication for log-in/log-out of users in the web site. This means that instead of using FormsAuthentication to generate the cookie, the application uses OWIN CookieAuthentication to do that. 
  • NuGet package 
    • ASP.NET Identity is redistributed as a NuGet package which is installed in the ASP.NET MVC, Web Forms and Web API templates that ship with Visual Studio 2013. You can download this NuGet package from the NuGet gallery. 
    • Releasing ASP.NET Identity as a NuGet package makes it easier for the ASP.NET team to iterate on new features and bug fixes, and deliver these to developers in an agile manner.

6 comments:

  1. أفضل الشركات بدبي والامارات
    إن نظافة المنازل من الأمور التي تؤرق الكثير من السيدات لأنها تكلف الكثير من الجهد والوقت ويفضل الكثير الاعتماد على الشركات الخاصة بتقديم هذه الخدمة ومن بين هذه الشركات التي سوف يتم تقديمهم في السطور التالية.
    شركة تنظيف المنازل دبي

    نظافة المنازل من المشكلات التي تسبب إزعاج لدى الكثير من الأشخاص وعلى وجه خاص للسيدات لأنهم هم من يتولوا مهمة تنظيف المنازل وهذا الأمر يكلفهم وقت وجهد وعناء وفي بعض الأحيان تكون النتيجة غير مرضية وفي نفس الوقت يكون الاهتمام بنظافة المنزل لأن النظافة مرتبطة بشكل مباشر بصحة أفراد الأسرة ولكن من هذه اللحظة لا داعي للقلق لأن شركة تنظيف المنازل بدبي تقدم خدمات التنظيف على أعلى مستوى من الكفاءة والجودة فسوف تحصلون معنا على منزل نظيف وصحي مريح للعيشة ولا يمثل أي خطر لأفراد الأسرة لذلك تعاونوا معنا الآن لتحصلوا على أفصل خدمة تنظيف بمدينة دبي.


    شركة تنظيف المنازل الشارقة


    تعمل شركة تنظيف المنازل بالشارقة وفقاً للمعايير العالمية لأمور التنظيف حيث أن الشركة تقوم باستخدام أفضل أنواع المنظفات والمعقمات صديقة البيئة وهذه المواد المصرح بها من وزارة الصحة

    شركة تنظيف المنازل عجمان

    تمتلك شركة تنظيف المنازل بعجمان الكثير من المميزات التي تجعلها اختياركم الأول ونحن على دراية كاملة بأن هناك عدد كبير من المؤسسات والشركات التي تعمل في هذا المجال ولكن من الصعب أن تكون بكفاءة وجدارة شركتن


    شركة تنظيف المنازل ابوظبي

    تستخدم شركة تنظيف المنازل بأبو ظبي أحدث المعدات والمنظفات الآمنة التي يتم استخدامها أثناء التنظيف ومن أحدث الأجهزة التي يتم استخدامها هو جهاز بخار الماء الذي يستخدم لتنظيف الكنب والمجالس والسجاد والستائر وكل أنواع المفروشات بكفاءة عالية، وليس هذا فقط بل أن الشركة توفر معدات متخصصة لتنظيف وجلي البلاط والسيراميك، وتوفر الشركة مجموعة كبيرة من الملمعات التي يتم استخدامها لتنظيف الواجهات الزجاجية.


    شركة تنظيف المنازل العين


    أهم ما يميز شركات اتنظيف المنزل بالعين أنها تقدم كل ما يخص التنظيف وكل ما يحتاجه العملاء الكرام حيث أن الشركة تقدم خدمة تنظيف الكنب والمجالس بكفاءة عالية مستخدمة أجهزة بخار الماء كما أن الشركة تقوم بتقديم خدمة تنظيف السجاد وكافة أنواع المفروشات وليس هذا فقط بل أن أسعار الشركة من أرخص الأسعار الموجودة على الساحة لذلك بادر الآن للتعاون معنا لكي تقوم بالاستفادة من تخفيضات وعروض الشركة.


    ReplyDelete