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
    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 4035 posts 12842 karma points MVP
    Jan 20, 2023 @ 13:54
    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