Skip to content

Commit

Permalink
Merged in bugfix/MTM-33299-FixOAuthExample-AddMemoryCache (pull reque…
Browse files Browse the repository at this point in the history
…st #12)

Bugfix/MTM-33299 FixOAuthExample AddMemoryCache

Approved-by: Elias Weingärtner <elias.weingaertner@cumulocity.com>
Approved-by: Rahul Miryala <rahul.miryala@softwareag.com>
  • Loading branch information
pallavc8y committed Aug 25, 2020
2 parents e225a01 + a277e0d commit a790160
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@
"launchUrl": "api/values",
"environmentVariables": {
"C8Y_MICROSERIVCE_ISOLATION": "PER_TENANT",
"C8Y_BASEURL": "http://oauth.staging-latest.c8y.io",
"C8Y_BASEURL": "",
"C8Y_BASEURL_MQTT": "",
"C8Y_TENANT": "",
"C8Y_PASSWORD": "",
"C8Y_USERNAME": "",
"SERVER_PORT": "47000",
"ASPNETCORE_ENVIRONMENT": "Staging",
"C8Y_BOOTSTRAP_TENANT": "management",
"C8Y_BOOTSTRAP_USERNAME": "servicebootstrap_cs-combain",
"C8Y_BOOTSTRAP_PASSWORD": "pass"
"C8Y_BOOTSTRAP_TENANT": "",
"C8Y_BOOTSTRAP_USERNAME": "",
"C8Y_BOOTSTRAP_PASSWORD": ""
},
"applicationUrl": "http://localhost:59071/"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public void ConfigureServices(IServiceCollection services)
services.Replace(ServiceDescriptor.Singleton(typeof(ILogger<>), typeof(TimedLogger<>)));
services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();
services.AddControllers(options => options.EnableEndpointRouting = false);
services.AddMemoryCache();
services.AddCumulocityAuthenticationAll(Configuration);
}

Expand Down

0 comments on commit a790160

Please sign in to comment.