Exemplo n.º 1
0
        public ActionResult Index()
        {
            ViewBag.AllowedPortals = DynamicsPortalBearerAuthenticationProvider.GetAllowedPortal();
            ViewBag.AllowedPortalsSigningKeyPlainText =
                DynamicsPortalBearerAuthenticationProvider.GetAllowedPortalSigningKeyPlainText();

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

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

            config.EnableCors(cors);

            config.MapHttpAttributeRoutes();
        }