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 10 posts 120 karma points
    18 days ago
    Mads Justesen
    0

    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

    Mads

  • Richard Soeteman 4003 posts 12651 karma points MVP
    18 days ago
    Richard Soeteman
    100

    Hi Mads,

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

    MediaProtect.Common.Providers.AuthenticationIAuthenticationProvider
    

    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,

    Richard

Please Sign in or register to post replies

Write your reply to:

Draft