At the beginning of the 21st century, new technological innovations and development of digital media have brought new possibilities for both the media content providers and for the users as well…
Prerequisite:
Active azure subscription
Familiarity with integrating the Microsoft Authentication Library, or msal
, into an application (Optional)
Step 2: Run the application in local. If everything goes well you should be able to see:
On trying to Sign in with Microsoft you should see:
Step 3: The authentication token from Azure active directory is saved in cache and can be extracted from there by adding below function in views.py
Step 4: Add variables in config.py to fetch user info from Microsoft Graph API.
Step 5: Paste this function in views.py to fetch data from the API
Step 6: Save the image from Graph API locally using the below function
Step 7: Pass the data to the index template which is displayed after login.
Step 8: Display the data in the index template
The final output should look something like this
Helpful links:
The line that separates patriotism and nationalism can be paper-thin, to the point of being invisible at times. And I believe we have all now borne witness to the danger that lurks at that…
The rise of cryptocurrency has created a buzz around the globe, which in turn has connected people all over to achieve financial stability. One such application is DeFi projects that are built on…
Hello to everyone who is reading this article!! I hope you all are having fun. In today’s article, I’ll discuss some topics that, if not addressed, have the potential to shake whole big enterprises…