Skip to content

Commit 05c0cd3

Browse files
committed
removed the ALLOW_INSECURE_LOGIN
1 parent 436d77f commit 05c0cd3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

components/rsptx/auth/session.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
# Standard library
1717
# ----------------
1818
from typing import Awaitable, Callable, cast, Optional
19-
import os
2019
# Third-party imports
2120
# -------------------
2221
from fastapi import Request
@@ -42,7 +41,6 @@ class RSLoginManager(LoginManager):
4241
Custom LoginManager class to force access token cookie to be SameSite=None so that iframe embedding and redirects from LTI tools work properly.
4342
"""
4443
def set_cookie(self, response, token):
45-
insecure = os.environ.get("ALLOW_INSECURE_LOGIN")
4644
response.set_cookie(key=self.cookie_name, value=token, httponly=True, samesite="None", secure=not(insecure))
4745

4846
try:

0 commit comments

Comments
 (0)