Skip to content
Python web development resources

Web

Authentication

Refresh Tokens for Azure AD V2 Applications in Flask

Summary

Using Azure AD for authenticating users in web applications.

Note

This could be used to centralize user management in an Azure AD B2Cservice and have all applications authenticate usingtokens provided by the server. See https://docs.microsoft.com/en-us/azure/active-directory-b2c/manage-user-accounts-graph-api?tabs=applications.

https://www.shawntabrizi.com/aad/refresh-tokens-azure-ad-v2-applications-flask/

Files

Async download with Celery

  • Published: 2014-01-09

Summary

Implementation of large file downloads using Celery to prevent server blocking.

http://thoslin.github.io/async-download-with-celery/

Testing

Mocking External APIs in Python

Summary

How to write tests for software that depends on external APIs.

https://realpython.com/testing-third-party-apis-with-mocks/