Copied to clipboard

Flag this post as spam?

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

  • Mads Justesen 11 posts 121 karma points
    Jan 20, 2023 @ 11:30
    Mads Justesen

    Using MediaProtect with a Eternal Login

    Hej there!

    I'm currently working on a website for a client who would like to protect some of their media files behind a login and MediaProtect seems like a perfect solution for this, however, I do have a question as our solution utilizes a external login.

    Is it posible to hook up MediaProtect to the external login or would I have to create a "shadowMember" which the users connect to when they log in with the external system?

    Currently scratching my head trying to figure out the best solution, so I'm hoping that someone else might have been in the same situation and got some suggestions.

    Kind regards


  • Richard Soeteman 4035 posts 12822 karma points MVP
    Jan 20, 2023 @ 13:54
    Richard Soeteman

    Hi Mads,

    Is possible a shadowmember is easiest but you can implement your own


    Make sure Alias is unique and register that in a custom composer

    builder.Services.AddUnique<IAuthenticationProvider, yourAuthenticationProvider>();

    Then it should pick up your custom provider. Make sure to add the roles to the returned user, that is what get's matched during check of the file.

    Hope this helps,


Please Sign in or register to post replies

Write your reply to: