import flask
from flask import Flask, jsonify

from flask_pyoidc.flask_pyoidc import OIDCAuthentication

PORT = 5000
app = Flask(__name__)

app.config.update({'SERVER_NAME': 'localhost:{}'.format(PORT),
                   'SECRET_KEY': 'dev_key'})
auth = OIDCAuthentication(app, issuer="https://localhost:50009")


@app.route('/')
@auth.oidc_auth
def index():
    return jsonify(id_token=flask.g.id_token.to_dict(), access_token=flask.g.access_token,
                   userinfo=flask.g.userinfo.to_dict())


@app.route('/logout')
@auth.oidc_logout
def logout():
    return 'You\'ve been successfully logged out!'


if __name__ == '__main__':
    app.run(port=PORT)

@@ -391,28 +391,27 @@
 ask.
-g.id_token.to_dict()
+session%5B'id_token'%5D
 , ac
@@ -427,18 +427,25 @@
 n=flask.
-g.
+session%5B'
 access_t
@@ -448,16 +448,18 @@
 ss_token
+'%5D
 ,%0A      
@@ -490,28 +490,27 @@
 ask.
-g.userinfo.to_dict()
+session%5B'userinfo'%5D
 )%0A%0A%0A

Update example app with to use session data instead of global data.