Copied to clipboard

Flag this post as spam?

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


  • Keen 4 posts 24 karma points
    Sep 03, 2009 @ 11:29
    Keen
    0

    asking about cookie single sign on

    Hi

    I need to integrate Umbraco with another system (i.e using same member database with single sign on). I'm writing my own Membership provider (for the CMS Frontend user) to validate user based on some database.

    I would like to know that how the cookie is generated after the user logs in so that I can modify it coresponding to the other system.

    I use the <asp:LoginView ID="UmbracoLoginView" runat="server">  at umbraco to provide the login facility

    Thanks for your help

    Keen

  • Petr Snobelt 923 posts 1535 karma points
    Sep 03, 2009 @ 13:54
    Petr Snobelt
    0

    Hi, simply use same membership provider for umbraco and your own application and everything should work.

  • Keen 4 posts 24 karma points
    Sep 04, 2009 @ 04:14
    Keen
    0

    Thanks for your answer. However,my own application is not using standard .NET membership, so how can I customize the umbraco provider so that it generates the same cookie as my applicaton. I'm already able to validate the user, but not setting the cookie correctly.

    Keen

  • Petr Snobelt 923 posts 1535 karma points
    Sep 04, 2009 @ 10:51
    Petr Snobelt
    0

    However,my own application is not using standard .NET membership

    Why not? Isn't more easy use umbraco membership in your application? You can add umbraco membership to your application and then use validateuser function instead of checking cookie.

    http://msdn.microsoft.com/en-us/library/system.web.security.membership.validateuser.aspx

     

  • Keen 4 posts 24 karma points
    Sep 07, 2009 @ 04:19
    Keen
    0

    Thanks Petr

    The situation is that our application is running in production for a long time. Its membership system is quite complicated (not using .NET membership) so we don't want to make much change on the code. Our task is to integrate Umbraco as a external application so that there's a single sign on between 2 applications.

    Currenly we are writing a new provider following .NET membership ,and use it in umbraco. The logic we replicate from the old app. Users are able to login in both systems now. But we're having some difficulties  with cookie. I want to know how can we customize the cookie after logging on in umbraco (i.e which fields to put in the cookie). This part seems not belonging to the provider code

    I appreciate for your help and suggestions

    Keen

     

     

     

  • Petr Snobelt 923 posts 1535 karma points
    Sep 08, 2009 @ 08:29
    Petr Snobelt
    0

    You can add your custom cookie into cookies collection after ValidateUser function in Umbraco, or miss I something?

Please Sign in or register to post replies

Write your reply to:

Draft