background preloader

MVC

Facebook Twitter

Doc MVCSiteMapProvider. Using OAuthWebSecurity without SimpleMembership « brockallen. I’ve been researching the new support in ASP.NET for OAuth and OpenID authentication.

Using OAuthWebSecurity without SimpleMembership « brockallen

It provides a nice and easy to use wrapper on DotNetOpenAuth. The main APIs are on the OAuthWebSecurity class and they provide methods to authenticate against your OAuth and OpenID providers as well as associate those OAuth and OpenID accounts to an account with your local membership provider (and strictly speaking your simple membership provider). Personally, I dislike the coupling between the authentication piece and the persistence piece. Fortunately this API can still be used without using providers. The main APIs to be aware of are: OAuthWebSecurity.RegisterXxxClientOAuthWebSecurity.RegisteredClientDataOAuthWebSecurity.RequestAuthenticationOAuthWebSecurity.VerifyAuthentication RegisterXxxClient (where Xxx is: Microsoft, Twitter, Facebook, Google, Yahoo or LinkedIn) RegisteredClientData This API provides the list of the registered identity providers. RequestAuthentication VerifyAuthentication Like this:

Extensions for ASP.NET MVC Demos. Grid The Grid widget displays tabular data and offers rich support for interacting with data; including paging, sorting, grouping, and selection.

Extensions for ASP.NET MVC Demos

Scheduler The Scheduler allows users to create and manage single or recurring tasks in day, week, month and custom views. Supports touch, mouse, and keyboard. Editor The Editor allows users to create rich text content by means of a WYSIWYG interface. AutoComplete The AutoComplete provides suggestions depending on the typed text. ComboBox The ComboBox widget allows selection from pre-defined values or entering a new value. DatePicker The DatePicker allows the end user to select a date from a calendar or by inputing the data directly.

ListView The ListView is designed to give your the freedom to specify custom type of layout for the items displayed in the control. DataSource The DataSource component is an abstraction for using local (arrays of JavaScript objects) or remote (XML, JSON, JSONP) data. Programming ASP.NET MVC 4 Web Applications. Adding Security and Membership. This article explains how to secure an ASP.NET Web Pages (Razor) website so that some of the pages are available only to people who log in.

Adding Security and Membership

(You'll also see how to create pages that anyone can access.) What you'll learn: How to create a website that has a registration page and a login page so that for some pages you can limit access to only members. How to create public and member-only pages. How to define roles, which are groups that have different security permissions on your site, and how to assign users to a role. These are the ASP.NET features introduced in the article: The WebMatrix Starter Site template. Software versions used in the tutorial ASP.NET Web Pages (Razor) 2WebMatrix 3ASP.NET Web Helpers Library You can set up your website so that users can log into it — that is, so that the site supports membership.

Even if your website supports membership, users aren't necessarily required to log in before they use some of the pages on the site. Change their passwords. Flowplayer - Flash Video Player for the Web. [ASP.NET MVC 3] Razor – Layout – Partie 3 , Thomas Jaskula. Vendredi 18 février 2011 17:57 tja Ce post je devais le publier avant ma session avec Rui sur MVC 3.

[ASP.NET MVC 3] Razor – Layout – Partie 3 , Thomas Jaskula

Finalement je l’ai retardé pour faire une suite après TechDays.