import json
import base64


def get_message_data(msg):
    """Extracts the message data from the sso message

    Note: the message is not verified here!
    """
    return json.loads(base64.b64decode(msg.split(', ')[0]))