Esempio n. 1
0
        protected override void Initialize(HttpControllerContext controllerContext)
        {
            base.Initialize(controllerContext);
            goPartyc3799bc758f544faa52787e94a24730dContext context = new goPartyc3799bc758f544faa52787e94a24730dContext();

            DomainManager = new EntityDomainManager <TodoItem>(context, Request);
        }
Esempio n. 2
0
        public CustomAuthController()
        {
            db         = new goPartyc3799bc758f544faa52787e94a24730dContext();
            signingKey = Environment.GetEnvironmentVariable("WEBSITE_AUTH_SIGNING_KEY");
            var website = Environment.GetEnvironmentVariable("WEBSITE_HOSTNAME");

            audience = $"https://{website}/";
            issuer   = $"https://{website}/";
        }