I have multiple sites under one Umbraco installation , just wondering if there is any way to apply forms authetication using .NET for one the site or on part of the site? any ideas or examples?
If you rightclick any node in umbraco you can select the "Public access" menu. This will allow you to select which membergroups are allowed to access that page and all its children.
Umbraco uses standard forms authentication by default, so you just need to create a page with a login control on it.
You might get a few tips from my blogpost on the topic here:
Thanks Morten , But situation is when we don't want to use "Members" logins , there wouild be like : .NET signup form - saving users data to another database(Not on umbraco) and login form using this database data , as we do in normal ASP.NET applications . makes sense?
Yes, you need to implement both a System.Web.Security.MembershipProvider (username/password stuff) and System.Web.Security.RoleProvider (group stuff). Lots of examples of this online.
Forms Authentication ?
I have multiple sites
I have multiple sites under one Umbraco installation , just wondering if there is any way to apply forms authetication using .NET for one the site or on part of the site? any ideas or examples?
If you rightclick any node in umbraco you can select the "Public access" menu. This will allow you to select which membergroups are allowed to access that page and all its children.
Umbraco uses standard forms authentication by default, so you just need to create a page with a login control on it.
You might get a few tips from my blogpost on the topic here:
http://www.mortenbock.dk/blog/2009/04/01/setting-up-membership-in-umbraco.aspx
Thanks Morten , But situation is when we don't want to use "Members" logins , there wouild be like : .NET signup form - saving users data to another database(Not on umbraco) and login form using this database data , as we do in normal ASP.NET applications . makes sense?
Should that not be doable by implementing your own Membership and Role providers?
right .. how can we do custom memebership in umbraco , so that should be able to use "Public access" option?
Umbraco 4 uses the standard ASP.NET membership provider. Here's a good place to start:
http://our.umbraco.org/wiki/how-tos/membership-providers
Yes, you need to implement both a System.Web.Security.MembershipProvider (username/password stuff) and System.Web.Security.RoleProvider (group stuff). Lots of examples of this online.
Thanks for your response, will try custom membership too.. but right now Going through : www.mortenbock.dk/.../...embership-in-umbraco.aspx
But after clicking on signup button getting following error.... any idea about that?
No node exists with id '0'
Yup, probably because you don't have a member group setup in umbraco that reflects web.config's settings
Following above code fragment, do you have a member group who's alias is TestType?
Hope this helps.
Regards,
/Dirk
Yes , that worked ... Thanks Dirk.
is working on a reply...