Skip to content

Commit bbea732

Browse files
authored
Merge pull request #90 from ssciwr/cookie_secure
Add COOKIE_SECURE setting
2 parents cd74550 + e53fd3f commit bbea732

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

mondey_backend/src/mondey_backend/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class AppSettings(BaseSettings):
1616
PORT: int = 8000
1717
RELOAD: bool = True
1818
LOG_LEVEL: str = "info"
19+
COOKIE_SECURE: bool = False
1920

2021

2122
app_settings = AppSettings()

mondey_backend/src/mondey_backend/users.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ async def get_user_manager(
4444
yield UserManager(user_db)
4545

4646

47-
cookie_transport = CookieTransport(cookie_max_age=3600)
47+
cookie_transport = CookieTransport(
48+
cookie_max_age=3600, cookie_secure=app_settings.COOKIE_SECURE
49+
)
4850

4951

5052
def get_database_strategy(

0 commit comments

Comments
 (0)