Skip to content

Commit b7c7090

Browse files
committed
Added in memory ticket store
1 parent 2103eea commit b7c7090

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Auth/LearningHub.Nhs.Auth/ServiceCollectionExtension.cs

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

0 commit comments

Comments
 (0)