Custom Profile Provider new MVC 4 template with Dotnetopenauth

fgalarraga picture fgalarraga · Aug 22, 2012 · Viewed 7.4k times · Source

How do you now configure the membership, profile and role manager using the new MVC template with DotNetOpenAuth enabled? I don't see the configurations in the web.config so how do you now implement a custom profile provider?

Answer

Jason Vickers picture Jason Vickers · Aug 23, 2012

With the new MVC4 template, it is very relevant. Instead of using a specified ProfileProvider:Profilebase, all authentication is handled by OAuth and Webmatrix.Security. Out of the box, it doesn't look like there is any support for extending Profilebase. Instead it looks like you will have to create your own table to hold any custom profile attributes. Take a look at this: http://www.asp.net/web-pages/tutorials/security/16-adding-security-and-membership.