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!
Indeed you need to configure the Membership Authentication provider. You can do this by setting <authenticationProvider>MemberShipAuthentication</authenticationProvider>
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?
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.
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!
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
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
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
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?
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 )
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
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!
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
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
is working on a reply...