示例#1
0
    def test_token_url_tenant(self):
        auth_client = MicrosoftClient()

        self.assertEqual(
            auth_client._token_url,
            "https://login.microsoftonline.com/test/oauth2/v2.0/token",
        )
示例#2
0
    def test_authorization_url_tenant(self):
        auth_client = MicrosoftClient()

        self.assertEqual(
            auth_client._authorization_url,
            "https://login.microsoftonline.com/test/oauth2/v2.0/authorize",
        )
 def test_authorization_with_proxies(self):
     auth_client = MicrosoftClient(state=STATE)
     self.assertEqual(auth_client.proxies, {"all": "http://1.2.3.4:8080"})