Copied to clipboard

Flag this post as spam?

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


  • Marcus Maunula 229 posts 386 karma points
    Jan 25, 2016 @ 13:55
    Marcus Maunula
    0

    RestAPI vs Members?

    This might be a silly question but I am quite new to this aspect of authentication.

    SImple question: Can this RestAPI also be used to authenticate members as well as users? If so, is there a sample somewhere?

    Just to clarify. I of course mean using memberinfo to authenticate, not "user".

  • Marcus Maunula 229 posts 386 karma points
    Jan 25, 2016 @ 15:34
    Marcus Maunula
    0

    Could it be a simple case of switching these?

    global::Umbraco.Core.Security.MembershipProviderExtensions.GetUsersMembershipProvider().AsUmbracoMembershipProvider());
    

    to

    global::Umbraco.Core.Security.MembershipProviderExtensions.GetMembersMembershipProvider().AsUmbracoMembershipProvider());
    

    Or was that too simple :D

  • Damiaan 442 posts 1302 karma points MVP 6x c-trib
    Jan 25, 2016 @ 16:54
    Damiaan
    100

    There is an issue on this topic in the github repo.

    For now, you will have to come up with your own implementation using custom UmbracoApiControllers.

  • Marcus Maunula 229 posts 386 karma points
    Jan 25, 2016 @ 18:51
    Marcus Maunula
    0

    Ok, thanx. I guess the extension route is the right one then. I thought this was already in since it seemed possible to switch in custom.

  • Damiaan 442 posts 1302 karma points MVP 6x c-trib
    Jan 25, 2016 @ 19:49
    Damiaan
    0

    What do you mean with the extension route?

  • Marcus Maunula 229 posts 386 karma points
    Jan 25, 2016 @ 21:52
    Marcus Maunula
    0

    It was suggested in the Github thread.

    "It should be possible to extend the existing infrastructure to suite your requirements though.".

    I guess this is a question of studying further :).

  • Damiaan 442 posts 1302 karma points MVP 6x c-trib
    Jan 25, 2016 @ 23:03
    Damiaan
    1

    Good luck. :-)

Please Sign in or register to post replies

Write your reply to:

Draft