Copied to clipboard

Flag this post as spam?

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


  • Nikola Petkovic 64 posts 63 karma points
    Sep 02, 2010 @ 14:29
    Nikola Petkovic
    0

    Is there a way to create custom umbraco USER provider?

    I would like to check login credentials to umbraco backend against different datasource than umbracoUser table.

    Is it possible to do in any version of umbraco?

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Sep 02, 2010 @ 14:40
    Morten Bock
    0

    This is possible in 4.0.x and in 4.5.x versions.

    However it is limited to performing the authentication part against another system. The Users still need to be created in umbraco.

    What you do is implement an asp.net membershipprovider and add it in the web.config file. And then you can supply that membershipprovider in the /config/umbracoSetting.config file near the bottom.

  • Nikola Petkovic 64 posts 63 karma points
    Sep 03, 2010 @ 12:21
    Nikola Petkovic
    0

    Thanks Morten, that works great for me!

    A note to others who might need this functionality:

    I just implemented one method from abstract MembershipProvider:

    MembershipProvider.ValidateUser(string username, string password) 

    so inside, I checked if such User exist in custom datasource.

    As Morten noted, User has to exist in Umbraco and the username value has to match with Umbraco user's Login field value.

    Umbraco does everything else ;)

Please Sign in or register to post replies

Write your reply to:

Draft