def load_config_auth(config_parser):
    """Convert an auth cfparser config into a dictionary

    :param config_parser: configparser configuration
    :type  paths: class:`configparser.ConfigParser`

    :return: configuration as a dictionary
    :rtype: dict
    """
    config = {'github': {'token': config_parser['github']['token']}}
    if config_parser.has_option('github', 'secret'):
        config['github']['secret'] = config_parser['github']['secret']
    return config