From 3dd112b86166d0e93c1576671e4d1cb34bc50679 Mon Sep 17 00:00:00 2001 From: Aviv Eyal Date: Mon, 4 Mar 2019 21:44:00 -0800 Subject: [PATCH] Update client.py --- microsoft_auth/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/microsoft_auth/client.py b/microsoft_auth/client.py index 9922f4a0..9f7ccb8e 100644 --- a/microsoft_auth/client.py +++ b/microsoft_auth/client.py @@ -64,7 +64,7 @@ def __init__(self, state=None, request=None, *args, **kwargs): def authorization_url(self): """ Generates Microsoft/Xbox or a Office 365 Authorization URL """ auth_url = self._authorization_url - tenant = self.config.get('MICROSOFT_AUTH_TENANT_ID', 'common') + tenant = self.config.MICROSOFT_AUTH_TENANT_ID auth_url = auth_url.replace('TENANT', tenant) if self.config.MICROSOFT_AUTH_LOGIN_TYPE == LOGIN_TYPE_XBL: auth_url = self._xbox_authorization_url @@ -73,7 +73,7 @@ def authorization_url(self): def fetch_token(self, **kwargs): """ Fetchs OAuth2 Token with given kwargs""" - tenant = self.config.get('MICROSOFT_AUTH_TENANT_ID', 'common') + tenant = self.config.MICROSOFT_AUTH_TENANT_ID url = self._token_url.replace('TENANT', tenant) return super().fetch_token( self._token_url,