public ActionResult Index()
        {
            ViewBag.AllowedPortals = DynamicsPortalBearerAuthenticationProvider.GetAllowedPortal();
            ViewBag.AllowedPortalsSigningKeyPlainText =
                DynamicsPortalBearerAuthenticationProvider.GetAllowedPortalSigningKeyPlainText();

            return(View());
        }
Exemple #2
0
        public static void Register(HttpConfiguration config)
        {
            var allowedPortal = DynamicsPortalBearerAuthenticationProvider.GetAllowedPortal();

            var cors = new EnableCorsAttribute("https://" + allowedPortal, "*", "*");

            config.EnableCors(cors);

            config.MapHttpAttributeRoutes();
        }