Is digital activism as effective as it is made out to be? Is clicktivism a problem for democracy or is it a new form of activism that can indeed hold the powerful to account?

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…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Create Profile Page using Microsoft Graph API

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:

Add a comment

Related posts:

The Destructive Nature of Nationalism

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…

Top 7 DeFi Projects to Invest in 2023

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…

What are the best social media analytics tool to use in 2022 that can really impact businesses?

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…