Esempio n. 1
0
 public Startup(IHostingEnvironment env)
 {
     _env = env;
     //var builder = new ConfigurationBuilder()
     //    .SetBasePath(env.ContentRootPath)
     //    .AddJsonFile("appsettings.json", optional: false, reloadOnChange: true)
     //    .AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true)
     //    .AddEnvironmentVariables();
     //_conf = builder.Build();
     JwtSecurityKey.SetSecret("A secret that needs to be atleast 16 characters long");
 }
Esempio n. 2
0
        public Startup(IHostingEnvironment env)
        {
            _env = env;
            IConfigurationBuilder builder = new ConfigurationBuilder()
                                            .SetBasePath(_env.ContentRootPath)
                                            .AddJsonFile("appsettings.json", optional: false, reloadOnChange: true)
                                            .AddJsonFile($"appsettings.{_env.EnvironmentName}.json", optional: true)
                                            .AddEnvironmentVariables();

            Configuration = builder.Build();
            JwtSecurityKey.SetSecret("This is a secret");
        }
Esempio n. 3
0
        //public Startup(IConfiguration configuration)
        //{
        //    Configuration = configuration;
        //}

        public Startup(IHostingEnvironment env)
        {
            this._env = env;
            JwtSecurityKey.SetSecret("CykaBlyatNahuiKurwa");
            var builder = new ConfigurationBuilder()
                          .SetBasePath(env.ContentRootPath)
                          .AddJsonFile("appsettings.json", optional: false, reloadOnChange: true)
                          .AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true)
                          .AddEnvironmentVariables();

            _cfg = builder.Build();
        }
Esempio n. 4
0
        public Startup(IHostingEnvironment env)
        {
            // Build configuration with appsettings.json
            var builder = new ConfigurationBuilder()
                          .SetBasePath(env.ContentRootPath)
                          .AddJsonFile("appsettings.json", false, true)
                          .AddEnvironmentVariables();

            Configuration = builder.Build();
            JwtSecurityKey.SetSecret("a secret that needs to be at least 16 characters long");
            // Define Environment
            Environment = env;
        }
Esempio n. 5
0
        public Startup(IHostingEnvironment env)
        {
            _env = env;
            var builder = new ConfigurationBuilder()
                          .SetBasePath(env.ContentRootPath)
                          .AddJsonFile("appsettings.json", false, true)
                          .AddJsonFile($"appsettings.{env.EnvironmentName}.json", true)
                          .AddEnvironmentVariables();

            _cfg = builder.Build();

            JwtSecurityKey.SetSecret("A secret that needs to be at least 16 characters long");
        }
Esempio n. 6
0
 public Startup(IConfiguration configuration)
 {
     Configuration = configuration;
     JwtSecurityKey.SetSecret("nnfal45lngfqLQQLLLL75K");
 }
Esempio n. 7
0
 public Startup(IConfiguration configuration, IHostingEnvironment env)
 {
     Configuration = configuration;
     Environment   = env;
     JwtSecurityKey.SetSecret("a secret that needs to be at least 16 characters long");
 }
 public Startup(IConfiguration configuration, IHostingEnvironment env)
 {
     Configuration = configuration;
     Environment   = env;
     JwtSecurityKey.SetSecret("my secret to make the best lo main is to use ginger and garlic paste");
 }
Esempio n. 9
0
 public Startup(IConfiguration configuration)
 {
     Configuration = configuration;
     JwtSecurityKey.SetSecret("a secret that needs to be at least 16 characters long");
 }
Esempio n. 10
0
 public Startup(IConfiguration configuration)
 {
     Configuration = configuration;
     JwtSecurityKey.SetSecret("kislhfoliernfljsefdælhHUOKG9649");
 }
Esempio n. 11
0
 public Startup(IConfiguration configuration, IHostingEnvironment env)
 {
     Configuration = configuration;
     Environment   = env;
     JwtSecurityKey.SetSecret("spaghetti for maghetti, one time falafel bikini");
 }