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 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.
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.
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
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
Hi, simply use same membership provider for umbraco and your own application and everything should work.
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
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
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
You can add your custom cookie into cookies collection after ValidateUser function in Umbraco, or miss I something?
is working on a reply...