# Path: dashboard/oidc_auth.py
# class OpenIDConnect(object):
# class tokenVerification(object):
#     def __init__(self, configuration):
#     def client_info(self):
#     def get_oidc(self, app):
#     def __init__(self, jws, public_key):
#     def verify(self):
#     def data(self):
#     def error_code(self):
#     def preferred_connection_name(self):
#     def redirect_uri(self):
#     def _get_connection_name(self, connection):
#     def _signed(self, jwk):
#     def _verified(self):
#     def error_message(self):
#         CONNECTION_NAMES = {
#             "google-oauth2": "Google",
#             "github": "GitHub",
#             "firefoxaccounts": "Firefox Accounts",
#             "Mozilla-LDAP-Dev": "LDAP",
#             "Mozilla-LDAP": "LDAP",
#             "email": "passwordless email",
#         }


from dashboard import oidc_auth
import os
"""Test to cover signed error message system."""



class ErrorTest(object):
    public_key_file = os.path.join(
        os.path.abspath(
            os.path.dirname(__file__)
        ),
        'data/public-signing-key.pem'
    )

    public_key = open(public_key_file).read()

    sample_jwt_file = os.path.join(
        os.path.abspath(
            os.path.dirname(__file__)
        ),
        'data/mfa-required-jwt'
    )

    sample_json_web_token = open(sample_jwt_file).read()


# Path: dashboard/oidc_auth.py
# class OpenIDConnect(object):
# class tokenVerification(object):
#     def __init__(self, configuration):
#     def client_info(self):
#     def get_oidc(self, app):
#     def __init__(self, jws, public_key):
#     def verify(self):
#     def data(self):
#     def error_code(self):
#     def preferred_connection_name(self):
#     def redirect_uri(self):
#     def _get_connection_name(self, connection):
#     def _signed(self, jwk):
#     def _verified(self):
#     def error_message(self):
#         CONNECTION_NAMES = {
#             "google-oauth2": "Google",
#             "github": "GitHub",
#             "firefoxaccounts": "Firefox Accounts",
#             "Mozilla-LDAP-Dev": "LDAP",
#             "Mozilla-LDAP": "LDAP",
#             "email": "passwordless email",
#         }


# Path: tests/test_error.py
from dashboard import oidc_auth
import os

"""Test to cover signed error message system."""



class ErrorTest(object):
    public_key_file = os.path.join(
        os.path.abspath(
            os.path.dirname(__file__)
        ),
        'data/public-signing-key.pem'
    )

    public_key = open(public_key_file).read()

    sample_jwt_file = os.path.join(
        os.path.abspath(
            os.path.dirname(__file__)
        ),
        'data/mfa-required-jwt'
    )

    sample_json_web_token = open(sample_jwt_file).read()


    tv = oidc_auth.tokenVerification(