AzureAD / azure-activedirectory-library-for-python

ADAL for Python
http://adal-python.readthedocs.io
Other
259 stars 94 forks source link

ADAL-basics Wiki page - typo in code #218

Closed zbodi74 closed 4 years ago

zbodi74 commented 4 years ago

One the ADAL-basics Wiki page, a space is missing from the sample code - preventing authentication in its current form.

The 'Bearer' string and the actual token should be separated by a space: SESSION.headers.update({'Authorization': "Bearer " + token_response['accessToken']})

rayluo commented 4 years ago

Thanks for reporting this, @bodiz ! I believe you mean this section. I fixed it just now.

By the way, if you are just starting a new project, you better try our latest authentication library, MSAL for Python, instead of ADAL Python.

zbodi74 commented 4 years ago

Thanks @rayluo for pointing us to the new authentication library - we are starting a new project, so this is very helpful.