mirror of
https://github.com/byo-software/steam-openid-connect-provider.git
synced 2025-01-10 10:26:23 +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 System;
|
||||||
using Microsoft.AspNetCore.Builder;
|
using Microsoft.AspNetCore.Builder;
|
||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Identity;
|
using Microsoft.AspNetCore.Identity;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
@ -52,6 +53,11 @@ namespace SteamOpenIdConnectProvider
|
||||||
.AddInMemoryIdentityResources(IdentityServerConfig.GetIdentityResources());
|
.AddInMemoryIdentityResources(IdentityServerConfig.GetIdentityResources());
|
||||||
|
|
||||||
services.AddAuthentication()
|
services.AddAuthentication()
|
||||||
|
.AddCookie(options =>
|
||||||
|
{
|
||||||
|
options.Cookie.SameSite = SameSiteMode.Strict;
|
||||||
|
options.Cookie.IsEssential = true;
|
||||||
|
})
|
||||||
.AddSteam(options =>
|
.AddSteam(options =>
|
||||||
{
|
{
|
||||||
options.ApplicationKey = Configuration["Authentication:Steam:ApplicationKey"];
|
options.ApplicationKey = Configuration["Authentication:Steam:ApplicationKey"];
|
||||||
|
|
Loading…
Reference in a new issue