I am an umbraco newbie and am working with version 4.7.
I have a requirement to get user information from our SalesLogix SQL database. The backend users can be managed through the Out-Of-Box umbraco membership provider. Looks like umbraco is encouraging the use of the ASP.NET provider model per this page http://our.umbraco.org/wiki/how-tos/membership-providers.
namespace UmbracoCustomMembershipProvider { public sealed class CustomMembershipProvider : MembershipProvider { //see link above for contents of this class } }
I am now able to add a Register/Login control to an umbraco page and have it utilize my custom membership provider.
The issue I am encountering now is that the Member area in the back office is not seeing any of the Members I create with my custom provider. It is still looking at the default cmsMember, cmsMember2MemberGroup, and cmsMemberType tables.
What else needs to be done besides updating Web.config to tell the Umbraco back office to use my new provider/tables?
trying to create custom MembershipProvider
hello,
I am an umbraco newbie and am working with version 4.7.
I have a requirement to get user information from our SalesLogix SQL database. The backend users can be managed through the Out-Of-Box umbraco membership provider. Looks like umbraco is encouraging the use of the ASP.NET provider model per this page http://our.umbraco.org/wiki/how-tos/membership-providers.
Trying to create a custom MembershipProvider prototype, I used the sample code on this page http://msdn.microsoft.com/en-us/library/6tc47t75%28v=VS.85%29.aspx in my class below and added the Users table to my umbraco database.
The following is in my web.config file:
Now when I try to login to umbraco, I get the following error:
Not sure what I am missing here or how to properly implement this solution.
Is there a sample available that shows how to implement a custom membership provider in umbraco based on the ASP.NET provider model?
thanks!!!!
Dan
Are you creating a user's membership provider for the backoffice (looks like it)
You need to edit the umbracosettings.config to set what membership provider to use for the backoffice.
The default in the web.config is for the member's membership provider, not the user's membership provicder
Looks like I had it backwards...my intention was to customize the provider handling the website users.
Thanks for you help!
Dan
To do that, changed the defaultProvider attribute in the web.config to your custom provider name.. Done!
I am now able to add a Register/Login control to an umbraco page and have it utilize my custom membership provider.
The issue I am encountering now is that the Member area in the back office is not seeing any of the Members I create with my custom provider. It is still looking at the default cmsMember, cmsMember2MemberGroup, and cmsMemberType tables.
What else needs to be done besides updating Web.config to tell the Umbraco back office to use my new provider/tables?
thanks!
Dan
is working on a reply...