# Path: tokenserver/verifiers.py
# DEFAULT_OAUTH_SCOPE = 'https://identity.mozilla.com/apps/oldsync'
# def get_browserid_verifier(registry=None):
# def get_oauth_verifier(registry=None):
#     def __init__(self, trusted_issuers=None, allowed_issuers=None, **kwargs):
#     def _emit_warning():
#     def verify(self, assertion, audience=None):
#     def __init__(self, audiences=None, trusted_issuers=None,
#                  allowed_issuers=None, verifier_url=None, timeout=None):
#     def verify(self, assertion, audience=None):
#     def __init__(self, server_url=None, default_issuer=None, timeout=30,
#                  scope=DEFAULT_OAUTH_SCOPE, jwks=None):
#     def server_url(self):
#     def timeout(self):
#     def verify(self, token):
# class IBrowserIdVerifier(Interface):
# class IOAuthVerifier(Interface):
# class LocalBrowserIdVerifier(browserid.verifiers.local.LocalVerifier):
# class RemoteBrowserIdVerifier(object):
# class RemoteOAuthVerifier(object):


import socket
import unittest
import responses
import contextlib
import fxa.errors
from pyramid.config import Configurator
from tokenserver.verifiers import (
    IOAuthVerifier,
    ConnectionError,
    RemoteOAuthVerifier,
)
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.






MOCK_TOKEN = 'token'


class TestRemoteOAuthVerifier(unittest.TestCase):

    DEFAULT_SETTINGS = {  # noqa; identation below is non-standard
        "tokenserver.backend":
            "tokenserver.assignment.memorynode.MemoryNodeAssignmentBackend",
        "oauth.backend":

# Path: tokenserver/verifiers.py
# DEFAULT_OAUTH_SCOPE = 'https://identity.mozilla.com/apps/oldsync'
# def get_browserid_verifier(registry=None):
# def get_oauth_verifier(registry=None):
#     def __init__(self, trusted_issuers=None, allowed_issuers=None, **kwargs):
#     def _emit_warning():
#     def verify(self, assertion, audience=None):
#     def __init__(self, audiences=None, trusted_issuers=None,
#                  allowed_issuers=None, verifier_url=None, timeout=None):
#     def verify(self, assertion, audience=None):
#     def __init__(self, server_url=None, default_issuer=None, timeout=30,
#                  scope=DEFAULT_OAUTH_SCOPE, jwks=None):
#     def server_url(self):
#     def timeout(self):
#     def verify(self, token):
# class IBrowserIdVerifier(Interface):
# class IOAuthVerifier(Interface):
# class LocalBrowserIdVerifier(browserid.verifiers.local.LocalVerifier):
# class RemoteBrowserIdVerifier(object):
# class RemoteOAuthVerifier(object):


# Path: tokenserver/tests/test_oauth_verifier.py
import socket
import unittest
import responses
import contextlib
import fxa.errors
from pyramid.config import Configurator
from tokenserver.verifiers import (
    IOAuthVerifier,
    ConnectionError,
    RemoteOAuthVerifier,
)

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.






MOCK_TOKEN = 'token'


class TestRemoteOAuthVerifier(unittest.TestCase):

    DEFAULT_SETTINGS = {  # noqa; identation below is non-standard
        "tokenserver.backend":
            "tokenserver.assignment.memorynode.MemoryNodeAssignmentBackend",
        "oauth.backend":

            "tokenserver.verifiers.RemoteOAuthVerifier",