Skip to content

Commit 610f1a5

Browse files
committed
Reverted in memory ticket store from RC
1 parent b7c7090 commit 610f1a5

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

Auth/LearningHub.Nhs.Auth/Filters/SecurityHeadersAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public override void OnResultExecuting(ResultExecutingContext context)
3333

3434
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
3535
////var csp = "default-src 'self'; object-src 'none'; frame-ancestors 'none'; sandbox allow-forms allow-same-origin allow-scripts; base-uri 'self';";
36-
var csp = "object-src 'none'; frame-ancestors 'none'; base-uri 'self';";
36+
var csp = "object-src 'none'; frame-ancestors 'none'; sandbox allow-forms allow-same-origin allow-scripts allow-popups; base-uri 'self';";
3737
//// also consider adding upgrade-insecure-requests once you have HTTPS in place for production
3838
////csp += "upgrade-insecure-requests;";
3939
//// also an example if you need client images to be displayed from twitter

Auth/LearningHub.Nhs.Auth/ServiceCollectionExtension.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,7 @@ public static void ConfigureServices(this IServiceCollection services, IConfigur
7373
options.DefaultAuthenticateScheme = CookieAuthenticationDefaults.AuthenticationScheme;
7474
options.DefaultSignInScheme = CookieAuthenticationDefaults.AuthenticationScheme;
7575
})
76-
.AddCookie(CookieAuthenticationDefaults.AuthenticationScheme, options =>
77-
{
78-
options.AccessDeniedPath = "/Home/AccessDenied";
79-
options.SessionStore = new InMemoryTicketStore(new ConcurrentDictionary<string, AuthenticationTicket>());
80-
})
76+
.AddCookie()
8177
.AddOpenIdConnect(
8278
"oidc_oa",
8379
options =>

LearningHub.Nhs.UserApi/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
var logger = NLogBuilder.ConfigureNLog("nlog.config").GetCurrentClassLogger();
1212

13-
var csp = "object-src 'none'; frame-ancestors 'none'; base-uri 'self';";
13+
var csp = "object-src 'none'; frame-ancestors 'none'; sandbox allow-forms allow-same-origin allow-scripts allow-popups; base-uri 'self';";
1414
try
1515
{
1616
logger.Debug("Log Started");

0 commit comments

Comments
 (0)