[Python-modules-commits] [python-social-auth] 06/89: Changed Azure AD endpoints according to new authorization flow

Wolfgang Borgert debacle at moszumanska.debian.org
Sat Dec 24 15:14:51 UTC 2016


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to tag v0.2.15
in repository python-social-auth.

commit 6ae6454d8cb2e320f4864ddb45e9141996b3749f
Author: sushantgawali <sushant.gawali at gmail.com>
Date:   Wed Dec 9 17:43:36 2015 +0530

    Changed Azure AD endpoints according to new authorization flow
---
 social/backends/azuread.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/social/backends/azuread.py b/social/backends/azuread.py
index a015a0f..4c59235 100644
--- a/social/backends/azuread.py
+++ b/social/backends/azuread.py
@@ -39,8 +39,8 @@ from social.backends.oauth import BaseOAuth2
 class AzureADOAuth2(BaseOAuth2):
     name = 'azuread-oauth2'
     SCOPE_SEPARATOR = ' '
-    AUTHORIZATION_URL = 'https://login.windows.net/common/oauth2/authorize'
-    ACCESS_TOKEN_URL = 'https://login.windows.net/common/oauth2/token'
+    AUTHORIZATION_URL = 'https://login.microsoftonline.com/common/oauth2/authorize'
+    ACCESS_TOKEN_URL = 'https://login.microsoftonline.com/common/oauth2/token'
     ACCESS_TOKEN_METHOD = 'POST'
     REDIRECT_STATE = False
     DEFAULT_SCOPE = ['openid', 'profile', 'user_impersonation']
@@ -101,6 +101,8 @@ class AzureADOAuth2(BaseOAuth2):
 
     def refresh_token_params(self, token, *args, **kwargs):
         return {
+			'client_id' : self.setting('KEY'),
+			'client_secret' : self.setting('SECRET'),
             'refresh_token': token,
             'grant_type': 'refresh_token',
             'resource': self.setting('RESOURCE')

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-social-auth.git



More information about the Python-modules-commits mailing list