How to Integrate Django WEB Application with Microsoft Azure For Authentication - python

I have developed a web application based on Django Framework, but i want my application to get authenticated by Azure Single Sign on, Please suggest the method or tutorials to achieve this

Google django azure authentication leads to here leads to here
Documentation here

Related

Deploying React - django apps on Azure web apps

Locally, I am able to run my django app and react app.
I migrated the django app to the azure web apps.
My question is, what is best practice regarding connecting the react app to the django app. Should I start another web app instance, or should I try to run both on the same instance?
The easiest way is that both React and Django are deployed on the same instance, however it depends on your need.
There are many ways to deploy Django + React, I will mentioned only two:
Simple one: Just import react libraries into your Django template and deploy your Django on the instance as a normal Django project. You may refer to this tutorial on how to accomplish this: Add React to Django Template
Second way which I would recommend: Deploy Django and React separately. Django app to be deployed on the Azure instance and react to be deployed as a static website on Azure Blob storage (You may refer to this tutorial: Host React on Azure Blob). In this case, your react app will be using the Django exposed APIs (through Django DRF). You may refer to this tutorial for further details: Deploy React + Django

openid connect provider and client example in django

I need to build a Django web-app. My web-app needs to support authentication and authorization using OpenID Connect. It is my first time doing this. Is there a free Identity Provider to test my application or do I need to write the provider and the client? My task is to write only the client that connects to the provider. An example would be great or some course/tutorial I can use to learn how to do this.
Maybe there are no good examples in Django but I know ASN.NET and Java so those examples could inspire me as well.
There are a bunch of OpenID Connect providers you can use to test your client: you can sign up for a free Auth0 or Okta developer sandbox, download and run IdentityServer locally, or try the OAuth2 Playground.
As for writing the client. Please don't write your own. There are a list of libraries from the OpenId Foundation. I've used pyoidc for a non Django application, you could hook that in to your app, or use one of the Django specific OpenID Connect libraries.
checkout this example using both provider (django app using django-oidc-provider package) and client (using JS).
https://django-oidc-provider.readthedocs.io/en/latest/sections/examples.html

How can a Qt/Qml app authenticate to GAE flask app?

I recently wrote a simple Google App Engine app using flask web framework. I used flask-login and flask-restful libraries to handle authentication and provide a simple RESTful api for the app. My next step is to have a Qt/Qml app login to the GAE app and have it use the REST api I created. The app is written in Qt 5.4 and runs on multiple desktop and mobile platforms. I tried using Qml WebView with Qt 5.4 to see if I could get authentication to happen successfully and then use the cookie produced during authentication to make RESTful calls from a separate network connection using QNetworkAccessManager. This never worked as I was unable to get the cookies from WebView. I am at a bit of a loss of how else I could do this? Thanks!

mobilize my django, python and google app engine website

i am currently developing a web application for a mobile phone. the website is written using google app engine (GAE) under python and django. i have tried using jqtouch to mobilize my website but jqtouch (or django-jqtouch) does not appear to be working.. any ideas on what i should do?
Hi Daniel
I'd try with full django + GAE for the django that's missing from pure GAE. There is a project called www.allbuttonspressed.com that enables full django with google app engine. I hope it can do what you want.

Windows Live Web Authentication on Google App Engine (GAE) using Python

I'm struggling to get Windows Live Web Authentication running on Google App Engine (GAE) using Python, as I'm quite new to the language.
However there are lots of examples for Facebook and Twitter, I was wondering if anyone had come up with a solution for Windows Live yet?
From what I can tell, the SDK you're referring to is just used for authentication, not authorization. That is, it allows you to uniquely identify a user by their Windows Live ID, but not, say, programmatically import their Hotmail contacts.
If this is the case, it would be easier to use the built-in OpenID support that's already available on both sides. The Windows Live OpenID provider is OpenID.Live-INT.com; instructions for authenticating using OpenID on App Engine can be found # http://code.google.com/appengine/articles/openid.html.
I ended up using http://anyopenid.com which provides quite a good bridge to openid, and I was able to use this with Google App Engine.

Categories

Resources