Пример #1
0
    def test_oidc_endpoint__no_subdomain(self):
        inst = ADFSOpenIdConnect()

        with self.assertRaises(ValueError) as exc:
            inst.OIDC_ENDPOINT
            self.assertEqual('You must specify the domain of your AD FS service via the "SOCIAL_AUTH_ADFS_OIDC_DOMAIN" '
                             'setting (e.g. https://adfs.my-org.com).', str(exc))
Пример #2
0
    def test_oidc_endpoint__subdomain_no_end_slash(self):
        inst = ADFSOpenIdConnect()

        ret = inst.OIDC_ENDPOINT

        self.assertEqual('https://adfs.my-org.mok/adfs', ret)