social_core/backends/microsoft.py
def user_data(self, access_token, *args, **kwargs):
        """Return user data by querying Microsoft service"""
        return self.get_json(
            'https://graph.microsoft.com/v1.0/me',
            headers={
                'Content-Type': 'application/x-www-form-urlencoded',
                'Accept': 'application/json',
                'Authorization': 'Bearer ' + access_token
            },
            method='GET'
        )
Return user data by querying Microsoft service
Return user data by querying Microsoft service
Return user data by querying Microsoft service
def user_data(self, access_token, *args, **kwargs):
        return self.get_json(
            'https://graph.microsoft.com/v1.0/me',
            headers={
                'Content-Type': 'application/x-www-form-urlencoded',
                'Accept': 'application/json',
                'Authorization': 'Bearer ' + access_token
            },
            method='GET'
        )
def user_data ( self , access_token , * args , ** kwargs ) : return self . get_json ( 'https://graph.microsoft.com/v1.0/me' , headers = { 'Content-Type' : 'application/x-www-form-urlencoded' , 'Accept' : 'application/json' , 'Authorization' : 'Bearer ' + access_token } , method = 'GET' )
Return user data by querying Microsoft service
Return user data by querying Microsoft service
"""Return user data by querying Microsoft service"""
self
access_token