Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • shruti 21 posts 42 karma points
    May 12, 2010 @ 20:05
    shruti
    0

    Forms Authentication ?

    I have multiple sites

  • shruti 21 posts 42 karma points
    May 12, 2010 @ 20:07
    shruti
    1

    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?

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    May 12, 2010 @ 20:23
    Morten Bock
    1

    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

  • shruti 21 posts 42 karma points
    May 13, 2010 @ 17:01
    shruti
    0

    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?

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    May 14, 2010 @ 08:56
    Morten Bock
    0

    Should that not be doable by implementing your own Membership and Role providers?

  • shruti 21 posts 42 karma points
    May 14, 2010 @ 21:47
    shruti
    0

    right .. how can we do  custom memebership in umbraco , so that should be able to use "Public access" option?

  • Jeff Grine 149 posts 189 karma points
    May 14, 2010 @ 21:54
    Jeff Grine
    0

    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

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    May 14, 2010 @ 22:05
    Morten Bock
    0

    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.

  • shruti 21 posts 42 karma points
    May 17, 2010 @ 20:31
    shruti
    0

    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'

     


     

  • shruti 21 posts 42 karma points
    May 17, 2010 @ 20:33
    shruti
    0

    [ArgumentException: No node exists with id '0']
       umbraco.cms.businesslogic.CMSNode.setupNode() in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\cms\businesslogic\CMSNode.cs:159
       umbraco.cms.businesslogic.CMSNode..ctor(Int32 Id) in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\cms\businesslogic\CMSNode.cs:91
       umbraco.cms.businesslogic.ContentType..ctor(Int32 id) in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\cms\businesslogic\ContentType.cs:91
       umbraco.cms.businesslogic.member.MemberType..ctor(Int32 id) in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\cms\businesslogic\member\MemberType.cs:19
       umbraco.cms.businesslogic.member.MemberType.GetByAlias(String Alias) in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\cms\businesslogic\member\MemberType.cs:99
       umbraco.providers.members.UmbracoMembershipProvider.CreateUser(String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus& status) in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\providers\members\MembersMembershipProvider.cs:381
       System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser() +318
       System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs e) +102
       System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) +418
       System.Web.UI.WebControls.CreateUserWizard.OnBubbleEvent(Object source, EventArgs e) +161
       System.Web.UI.WebControls.WizardChildTable.OnBubbleEvent(Object source, EventArgs args) +19
       System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
       System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +118
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +166
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    May 17, 2010 @ 21:17
    Dirk De Grave
    0

    Yup, probably because you don't have a member group setup in umbraco that reflects web.config's settings

    <add name="UmbracoMembershipProvider" type="umbraco.providers.members.UmbracoMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="TestType" passwordFormat="Hashed" />

    Following above code fragment, do you have a member group who's alias is TestType?

     

    Hope this helps.

    Regards,

    /Dirk

     

  • shruti 21 posts 42 karma points
    May 17, 2010 @ 21:43
    shruti
    0

    Yes , that worked ... Thanks Dirk.

Please Sign in or register to post replies

Write your reply to:

Draft