Use a custom session cookie name

This commit is contained in:
Éloi Rivard 2020-08-26 09:41:53 +02:00
parent 665700e814
commit a2a4485840

View file

@ -14,7 +14,12 @@ from .oauth2utils import config_oauth
def create_app(config=None):
app = Flask(__name__)
app.config.from_mapping({"OAUTH2_REFRESH_TOKEN_GENERATOR": True})
app.config.from_mapping(
{
"SESSION_COOKIE_NAME": "oidc-ldap-bridge",
"OAUTH2_REFRESH_TOKEN_GENERATOR": True,
}
)
if config:
app.config.from_mapping(config)
elif "CONFIG" in os.environ: