# Path: dashboard/config.py
# CONFIG = get_config()
#     DEBUG = bool(CONFIG("debug", namespace="sso-dashboard", default="True"))
#     TESTING = bool(CONFIG("testing", namespace="sso-dashboard", default="False"))
#     CSRF_ENABLED = bool(CONFIG("csrf_enabled", default="True"))
#     PERMANENT_SESSION = bool(
#         CONFIG("permanent_session", namespace="sso-dashboard", default="True")
#     )
#     PERMANENT_SESSION_LIFETIME = int(
#         CONFIG("permanent_session_lifetime", namespace="sso-dashboard", default="86400")
#     )
#     SESSION_COOKIE_HTTPONLY = bool(
#         CONFIG("session_cookie_httponly", namespace="sso-dashboard", default="True")
#     )
#     LOGGER_NAME = CONFIG(
#         "logger_name", namespace="sso-dashboard", default="sso-dashboard"
#     )
#     SECRET_KEY = CONFIG("secret_key", namespace="sso-dashboard")
#     SERVER_NAME = CONFIG(
#         "server_name", namespace="sso-dashboard", default="localhost:8000"
#     )
#     S3_BUCKET = CONFIG("s3_bucket", namespace="sso-dashboard")
#     CDN = CONFIG(
#         "cdn",
#         namespace="sso-dashboard",
#         default="https://cdn.{SERVER_NAME}".format(SERVER_NAME=SERVER_NAME),
#     )
#     FORBIDDEN_PAGE_PUBLIC_KEY = base64.b64decode(
#         CONFIG("forbidden_page_public_key", namespace="sso-dashboard")
#     )
#     PREFERRED_URL_SCHEME = CONFIG(
#         "preferred_url_scheme", namespace="sso-dashboard", default="https"
#     )
#         CONFIG = get_config()
# class Config(object):
# class DefaultConfig(object):
# class OIDCConfig(object):
#     def __init__(self, app):
#     def _init_env(self):
#     def __init__(self):
#     def client_id(self):
#     def client_secret(self):
#     def auth_endpoint(self):
#     def token_endpoint(self):
#     def userinfo_endpoint(self):


import http.client
import json
from dashboard import config
# Commenting out in since CISv1 is no longer up and running
# todo: this will need to get modified to reach out to person api v2
# import urllib



class API(object):
    """Retrieve data from person api as needed.  Will eventually replace Mozillians API"""

    def __init__(self):
        """
        :param session: the flask session to update with userinfo
        """

# Path: dashboard/config.py
# CONFIG = get_config()
#     DEBUG = bool(CONFIG("debug", namespace="sso-dashboard", default="True"))
#     TESTING = bool(CONFIG("testing", namespace="sso-dashboard", default="False"))
#     CSRF_ENABLED = bool(CONFIG("csrf_enabled", default="True"))
#     PERMANENT_SESSION = bool(
#         CONFIG("permanent_session", namespace="sso-dashboard", default="True")
#     )
#     PERMANENT_SESSION_LIFETIME = int(
#         CONFIG("permanent_session_lifetime", namespace="sso-dashboard", default="86400")
#     )
#     SESSION_COOKIE_HTTPONLY = bool(
#         CONFIG("session_cookie_httponly", namespace="sso-dashboard", default="True")
#     )
#     LOGGER_NAME = CONFIG(
#         "logger_name", namespace="sso-dashboard", default="sso-dashboard"
#     )
#     SECRET_KEY = CONFIG("secret_key", namespace="sso-dashboard")
#     SERVER_NAME = CONFIG(
#         "server_name", namespace="sso-dashboard", default="localhost:8000"
#     )
#     S3_BUCKET = CONFIG("s3_bucket", namespace="sso-dashboard")
#     CDN = CONFIG(
#         "cdn",
#         namespace="sso-dashboard",
#         default="https://cdn.{SERVER_NAME}".format(SERVER_NAME=SERVER_NAME),
#     )
#     FORBIDDEN_PAGE_PUBLIC_KEY = base64.b64decode(
#         CONFIG("forbidden_page_public_key", namespace="sso-dashboard")
#     )
#     PREFERRED_URL_SCHEME = CONFIG(
#         "preferred_url_scheme", namespace="sso-dashboard", default="https"
#     )
#         CONFIG = get_config()
# class Config(object):
# class DefaultConfig(object):
# class OIDCConfig(object):
#     def __init__(self, app):
#     def _init_env(self):
#     def __init__(self):
#     def client_id(self):
#     def client_secret(self):
#     def auth_endpoint(self):
#     def token_endpoint(self):
#     def userinfo_endpoint(self):


# Path: dashboard/person.py
import http.client
import json
from dashboard import config

# Commenting out in since CISv1 is no longer up and running
# todo: this will need to get modified to reach out to person api v2
# import urllib



class API(object):
    """Retrieve data from person api as needed.  Will eventually replace Mozillians API"""

    def __init__(self):
        """
        :param session: the flask session to update with userinfo
        """

        self.config = config.OIDCConfig()