Skip to content
Snippets Groups Projects
Verified Commit f9dc7a35 authored by Arthur Conrozier's avatar Arthur Conrozier
Browse files

comment and .env

parent d436e603
Branches
No related tags found
1 merge request!1Updating main
...@@ -4,3 +4,4 @@ AUTHORIZATION_URL="https://auth.viarezo.fr/oauth/authorize" ...@@ -4,3 +4,4 @@ AUTHORIZATION_URL="https://auth.viarezo.fr/oauth/authorize"
TOKEN_URL="https://auth.viarezo.fr/oauth/token" TOKEN_URL="https://auth.viarezo.fr/oauth/token"
USERINFO_URL="https://auth.viarezo.fr/oidc/userinfo" USERINFO_URL="https://auth.viarezo.fr/oidc/userinfo"
LOGOUT_URL="https://auth.viarezo.fr/logout" LOGOUT_URL="https://auth.viarezo.fr/logout"
SESSION_SECRET="my-super-secret"
\ No newline at end of file
...@@ -20,7 +20,7 @@ app.secret_key = SESSION_SECRET ...@@ -20,7 +20,7 @@ app.secret_key = SESSION_SECRET
app.config['SESSION_COOKIE_HTTPONLY'] = True # Prevents JavaScript access to the cookie app.config['SESSION_COOKIE_HTTPONLY'] = True # Prevents JavaScript access to the cookie
app.config['SESSION_COOKIE_SECURE'] = True # Ensures the cookie is only sent over HTTPS app.config['SESSION_COOKIE_SECURE'] = True # Ensures the cookie is only sent over HTTPS
app.config['SESSION_COOKIE_SAMESITE'] = 'Lax' # Mitigates CSRF attacks app.config['SESSION_COOKIE_SAMESITE'] = 'Lax' # Mitigates CSRF attacks
app.config['SESSION_TYPE'] = 'redis' # Use Redis to store sessions app.config['SESSION_TYPE'] = 'redis' # Use Redis to store sessions (server-side)
app.config['SESSION_PERMANENT'] = False # Session is deleted when the browser is closed app.config['SESSION_PERMANENT'] = False # Session is deleted when the browser is closed
app.config['SESSION_USE_SIGNER'] = True # Sign the session cookie app.config['SESSION_USE_SIGNER'] = True # Sign the session cookie
app.config['SESSION_KEY_PREFIX'] = 'oauth_' # Prefix for session keys app.config['SESSION_KEY_PREFIX'] = 'oauth_' # Prefix for session keys
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment