Commit beb472d6 authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

Using persistent sessions

parent 30145731
Pipeline #10578 passed with stage
in 55 seconds
# This base image builds upon python3, with pre-installed Python requirements and _node js_.
image: jlebiodaunilu/elixirlu-basebeacon-python:v0.2.1
image: jlebiodaunilu/elixirlu-basebeacon-python:v0.2.2
before_script:
- cd code
......
# This base image builds upon python3, with pre-installed Python requirements and _node js_.
FROM jlebiodaunilu/elixirlu-basebeacon-python:v0.2.1
FROM jlebiodaunilu/elixirlu-basebeacon-python:v0.2.2
MAINTAINER Jacek Lebioda "jacek.lebioda@uni.lu"
# Prepare the structure and install pip
RUN mkdir -p /home/beacon/elixir-beacon && \
......
......@@ -34,6 +34,9 @@ def register_extensions(app):
logger.debug(' * registering CORS...')
extensions.cors.init_app(app)
logger.debug(' * registering CORS succeeded!')
logger.debug(' * registering Flask-Session...')
extensions.flask_session.init_app(app)
logger.debug(' * registering Flask-Session succeeded!')
logger.debug(' * registering OIDC...')
try:
extensions.oidc.init_app(app)
......
......@@ -2,7 +2,9 @@
from flask_cors import CORS
from flask_oidc import OpenIDConnect
from flask.ext.session import Session
cors = CORS()
oidc = OpenIDConnect()
flask_session = Session()
......@@ -3,6 +3,7 @@ coverage==4.4.1
Flask==0.12.2
Flask-Cors==3.0.3
flask-oidc==1.3.0
Flask-Session==0.3.1
Flask-Testing==0.6.2
gunicorn==19.7.1
httplib2==0.10.3
......
{
"SECRET_KEY": "1a2b3c4d5e6f7890",
"SUPPRESS_WARNINGS": false,
"SESSION_TYPE": "filesystem",
"SESSION_PERMANENT": false,
"SESSION_FILE_DIR": "/session",
"OIDC_CLIENT_SECRETS": "../../configuration/client_secrets.json",
"OIDC_SCOPES": ["openid", "emai", "profile", "bona_fide_status", "groupNames"],
"OIDC_COOKIE_SECURE": true
......
......@@ -25,7 +25,9 @@ services:
volumes:
- static:/home/beacon/elixir-beacon/code/backend/beacon/static
- beacon_logs:/log
- beacon_sessions:/session
version: "3.1"
volumes:
static:
beacon_logs:
beacon_sessions:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment