mirror of
https://github.com/byo-software/steam-openid-connect-provider.git
synced 2025-01-09 18:06:22 +00:00
Set samesite cookie policy to strict. Fixes #5.
This commit is contained in:
parent
b5641ed173
commit
827780318a
1 changed files with 6 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
@ -52,6 +53,11 @@ namespace SteamOpenIdConnectProvider
|
|||
.AddInMemoryIdentityResources(IdentityServerConfig.GetIdentityResources());
|
||||
|
||||
services.AddAuthentication()
|
||||
.AddCookie(options =>
|
||||
{
|
||||
options.Cookie.SameSite = SameSiteMode.Strict;
|
||||
options.Cookie.IsEssential = true;
|
||||
})
|
||||
.AddSteam(options =>
|
||||
{
|
||||
options.ApplicationKey = Configuration["Authentication:Steam:ApplicationKey"];
|
||||
|
|
Loading…
Reference in a new issue