Is there a library I can use to do a SAML authentication in App Engine using python?
I've looked at pysaml2 which does say it's pure python implementation. However, it's using subprocess.Popen which cannot be used within App Engine and will fail at that point.
You can use python-saml on GAE if you use the flex environment with a custom runtime built off of the standard python27 runtime provided by google. I just got onelogin's python-saml flask-demo successfully working with this approach using the following settings:
Dockerfile:
app.yaml
requirements.txt
then simply do
gcloud app deploy app.yaml --version v1
Try python-saml or python3-saml