import json
import pandas as pd
import importlib
import importlib.util
import os

#
# Defining the decorator to be used in plugins, this will enable simple loading and assigning mimetype to the output (if any)
#
import cms
# @cms.Plugin(mimetype="application/json")
# def authenticate(**_args) :
#     _config = _args['config']
#     _request= _args['request']
#     #
#     # let's load the configuration for 
#     _manager = cms.secure.Manager(config=_config)
#     #
#     # 
#     _cookies,_args = _manager.authenticate(request=_request)


#
# The html page weill be provided by the front-end
#