def save_session_data(strategy, request, response, *args, **kwargs):
    """Save some data in the session"""
    session_state = strategy.request_data().get('session_state')
    if session_state:
        request.session['session_state'] = session_state
    id_token = response.get('id_token')
    if id_token:
        request.session['id_token'] = id_token
