|
|
@ -13,7 +13,6 @@
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
|
|
|
|
import logging
|
|
|
|
|
|
|
|
import re
|
|
|
|
import re
|
|
|
|
import time
|
|
|
|
import time
|
|
|
|
import unittest
|
|
|
|
import unittest
|
|
|
@ -29,8 +28,6 @@ from matrix_synapse_saml_mozilla._sessions import username_mapping_sessions
|
|
|
|
|
|
|
|
|
|
|
|
from . import create_mapping_provider
|
|
|
|
from . import create_mapping_provider
|
|
|
|
|
|
|
|
|
|
|
|
logging.basicConfig()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class FakeResponse:
|
|
|
|
class FakeResponse:
|
|
|
|
def __init__(self, source_uid, display_name):
|
|
|
|
def __init__(self, source_uid, display_name):
|
|
|
@ -58,6 +55,8 @@ def _load_test_response() -> AuthnResponse:
|
|
|
|
allow_unsolicited=True,
|
|
|
|
allow_unsolicited=True,
|
|
|
|
# tell it not to check the `destination`
|
|
|
|
# tell it not to check the `destination`
|
|
|
|
asynchop=False,
|
|
|
|
asynchop=False,
|
|
|
|
|
|
|
|
# tell it not to check the issue time
|
|
|
|
|
|
|
|
timeslack=20 * 365 * 24 * 3600,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
response.loads(response_xml, decode=False, origxml=response_xml)
|
|
|
|
response.loads(response_xml, decode=False, origxml=response_xml)
|
|
|
|
response.verify()
|
|
|
|
response.verify()
|
|
|
|