Example #1
0
 public void SetupRequestConfigData(Guid customerId, Purchase purchase)
 {
     RequestConfigData = new ServiceRequestConfigData()
     {
         Uri = new Uri($"https://lic.drmtoday.com/license-proxy-headerauth/drmtoday/RightsManager.asmx?assetId={purchase.AssetId}&variantId={purchase.VariantId}"),
         ChallengeCustomData = Base64Helpers.Base64Encode("{\"userId\":\"" + customerId + "\",\"sessionId\":\"" + purchase.PlayerSessionId + "\",\"merchant\":\"hboeurope\"}"),
         CustomArtibutes     = new List <KeyValuePair <string, string> >()
         {
             new KeyValuePair <string, string>("x-dt-auth-token", purchase.AuthToken),
             new KeyValuePair <string, string>("Origin", "https://www.hbogo.cz"),
         }
     };
 }