It's not recommended to add your customers directly to your Azure AD tenant. Instead, you can use Azure AD B2C (Business to Customer) to authenticate your customers.
Azure AD B2C is a cloud identity service that allows you to customize and control how your customers sign up, sign in, and manage their profiles when using your web platform. With Azure AD B2C, you can create a separate identity store for your customers, and they can use their existing social media or email accounts to sign into your web platform.
Here's how you can use Azure AD B2C with Azure Media Services:
- Create an Azure AD B2C tenant and register your web platform as an application in Azure AD B2C.
- Configure Azure Media Services to use Azure AD B2C for authentication and authorization.
- Create a security group in Azure AD B2C for users who have purchased premium videos.
- Grant the security group access to the premium videos in Azure Media Services.
- In your web platform, use Azure AD B2C to authenticate users and obtain an access token.
- When a user requests a premium video, your web platform should use the access token to request a SAS token from Azure Media Services.
- Azure Media Services will use the access token to verify that the user is a member of the security group that has access to the premium video.
- Azure Media Services will generate a SAS token that is valid only for that user and for a limited time.
- Your web platform can use the SAS token to grant the user access to the premium video.
By using Azure AD B2C, you can ensure that your customers are authenticated securely and that their personal information is kept separate from your Azure AD tenant.