Copied to clipboard

Flag this post as spam?

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


  • Brian Patton 33 posts 103 karma points
    Nov 04, 2016 @ 15:37
    Brian Patton
    0

    v2 Authentication Provider issues

    Hey Richard, I just upgraded Media Protect to v2 and am having issues. We use an alternative authentication provider & role provider that gives us control via Active Directory. We use this provider: https://our.umbraco.org/projects/backoffice-extensions/umbraco-active-directory-authentication

    It "just worked" w/ media protect in the previous version. Roles were listed properly in the public access dialog, but now none of the roles are showing up and when trying to access a protected media item, it says access is denied.

    ANy help would be appreciated! I suspect I need to adjust the authenticationProvider section of the mediaprotect.config, but not sure what it should be!

    THanks! Brian

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Nov 07, 2016 @ 07:30
    Richard Soeteman
    0

    Hi Brian,

    Indeed you need to configure the Membership Authentication provider. You can do this by setting <authenticationProvider>MemberShipAuthentication</authenticationProvider>

    This is also mentioned in the manual.

    Hope this helps,

    Richard

  • Brian Patton 33 posts 103 karma points
    Nov 07, 2016 @ 13:10
    Brian Patton
    0

    Hi RIchard, I have tried switching that to the Active Directory memebership provider that we use, but when doing so, every page on our site displays a Media Protect configuration error. Any thoughts?

  • Brian Patton 33 posts 103 karma points
    Nov 07, 2016 @ 21:12
    Brian Patton
    0

    Additional info from UmbracoTraceLog:

    2016-11-07 16:11:19,198 [120] ERROR MediaProtect.HttpModules.MediaProtectModule - Mediaprotect MediaProtect Error validating /favicon.ico : System.ArgumentException: The parameter 'username' must not be empty. Parameter name: username at System.Web.Util.SecUtility.CheckParameter(String& param, Boolean checkForNull, Boolean checkIfEmpty, Boolean checkForCommas, Int32 maxSize, String paramName) at System.Web.Security.ActiveDirectoryMembershipProvider.CheckUserName(String& username, Int32 maxSize, String paramName) at System.Web.Security.ActiveDirectoryMembershipProvider.GetUser(String username, Boolean userIsOnline) at System.Web.Security.Membership.GetUser(String username, Boolean userIsOnline) at MediaProtect.Providers.AuthenticationProvider.MembershipAuthenticationProvider.GetUser() at MediaProtect.HttpModules.MediaProtectModule.(Object , EventArgs )

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Nov 08, 2016 @ 07:34
    Richard Soeteman
    100

    Hi Brian,

    Did you set it to the MemberShipAuthentication alias? If not then it probably can't find the provider.

    What is the Umbraco version you are using by the way? V2 of Mediaprotect is supported from Umbraco V7.4+ (use an older version of Mediaprotect vor older Umbraco versions) and the Active Directory provider is not tested on that version.

    Best,

    Richard

  • Brian Patton 33 posts 103 karma points
    Nov 08, 2016 @ 14:39
    Brian Patton
    0

    I hadn't set the alias in the web.config to MemberShipAuthentication ... that appears to have been the issue. It's working now (i'm on 7.5.4 by the way) Thanks!

  • Chris Lord 58 posts 211 karma points
    Nov 11, 2016 @ 22:35
    Chris Lord
    0

    I'm having similar issues, do you need to set the authenticationProvider setting in the mediaprotect.config to literally "MemberShipAuthentication", or is it something in web.config i need to set?

    i've tried "MemberShipAuthentication" and it's not working for me ? I am using 7.5.3

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Nov 14, 2016 @ 07:11
    Richard Soeteman
    0

    Hi Chris,

    Yes, that is what you need to do indeed. Then it's using standard asp.net membership authentication. There is nothing you need to set in web.config.

    Is your authentication method implementing a Membership provider?

    Best,

    Richard

Please Sign in or register to post replies

Write your reply to:

Draft