Using AIS authentication with AMP.

Implementation of AIS authentication into AMP. The plugin can be implemented by providing a ais object in the player config:

var config = {
  plugins: {
    ais: {
      resources: [
        {src: "#{paths.plugins}ais/libs/ais.min.js", debug: "#{paths.plugins}ais/libs/ais.js", type: "text/javascript", async: true},
        {src: "#{paths.plugins}ais/Ais.min.css", debug: "#{paths.plugins}ais/Ais.css", type: "text/css", async: true},
        {src: "#{paths.plugins}ais/Ais.min.js", debug: "#{paths.plugins}ais/Ais.js", type: "text/javascript", async: true}
      ],
      disableFootprints: false,
      platformId: "urn:amp:com:sp:staging:1",
      resourceId: "amp",
      contentId: "#{media.guid}",
      responseTargets: {
        redirect: "amptesting",
        popup: "amptesting"
      },
      logos: {
        base: "http://global.amp.com/static/p/watch/img/logo/chooser/",
        group: "top_providers",
        key: "filename"
      },
      query: "hdnea",
      asset_id: "1234",
      asset_title: "1234",
      asset_type: "tv_show",
      pc_rating: "TV-G",
      network_id: "amp",
      namespace: "amp"
    }
  }
};
akamai.amp.AMP.create("amp", config);