openid in pylons (not using authkit) - python

So I'm trying to authenticate users on a Pylons web application using openid. I don't want to use authkit, seeing as it is no longer maintained.
I'm currently trying to use python-openid (available from git at http://github.com/openid/python-openid) and having a hard time with it. The pylons framework isn't making it easy for me to interact with the python-openid classes, which are basically looking for instances of python's HTTPServer and SimpleCookie classes...
Any assistance available? Has anyone solved this problem? TIA.

OpenId with pylons through repoze.what works OK. Please see the following discussion in the pylons mailing list to find some pointers: http://groups.google.com/group/pylons-discuss/browse_thread/thread/162ebf131db3582b#

Related

What is a good alternative to Firebase for user management, more specifically for Python?

What is an alternative to firebase for user management/auth for python apps. I know I can use node.js w/ firebase but, I would rather authenticate users through a managed 3rd party API in python using HTTPS requests,if possible. Appery.io has this feature but, I do not need all that comes with appery.io
Check out Amazon Cognito . They offer a quite nice package for small projects. Backendless is also a fantastic service, providing authentication and database with very helpful documentation and also SDK for different platforms including iOS, Android, Javascript, Rest API, Angular, React and React Native. I have been using Backendless for a couple of months and I highly recommend you use it, too.
If you're looking for a self-hosted solution, Keycloak is a pretty robust option. If you want a service, Auth0 and Okta have quite a lot of features. They also offer a free tier with reasonable limits.
You could try using Auth0 for pure authentication management. The Auth0 python package can be found here.

Python3 OpenID-library

I search for OpenID-library, which works with python3. I need to be an OpenID-provider and OpenID-consumer. tornado.auth provides only consumer functionality. What I can use to implement provider functionality, or how it can be implemented with tornado?
Does anybody uses python3-openid (fork of python-openid)? How it works?
python3-openid is the Python 3 version of python-openid, which has been more or less the reference library for OpenID in Python for several years. So it should implement everything you need. (Disclaimer: I ported python3-openid over and am the maintainer of the PyPI package).
However, for Tornado you will need a non-blocking implementation, ideally using Tornado's HTTPClient classes, and currently python3-openid does not provide that -- if you'd like to implement it, though, I'll gladly work on your pull request!
I went with pyoidc because it is listed as a "Certified Relying Party Library" on the official list of "Certified OpenID Connect Implementations" directly on the website for the OpenID standard. It runs on Python 3.5+ and also doubles as a full OAuth2.0 implementation.
I know this is an old post but it is still relevant. One should not screw around when it comes to things like security and authentication, it could very well save your job to stick with officially recommended or certified libraries - if anything goes wrong, at least your choice of authentication library can't be called into question!
have you tried this, i found it on pypi:
http://pypi.python.org/pypi/python3-openid/3.0.1

SUDS or SOAPpy: google app engine python

Am very new on WSDL (SOAP) web service on GAE python,
i read some services like SOAPpy, SUDS
actually i couldn't able to figure-out which is best and easy for consuming the services.
Guys, Could you please share me your experiences with this or any other best services which i can use in my app.
Note: am using Windows7 for development with Python2.5, GAE 1.6.1v
SUDS is very nice and would be my preferred choice, but AFAIK doesn't work on GAE without modifications. It stores the WSDL cache on file system, while on GAE you'd want to store in memcached instead. Fixing it shouldn't be too difficult, if you search you should find a couple of blog postings on the issue. There are also several versions on github, perhaps some of those support GAE.
That's my blog post linked in the above comment. I'm glad it was helpful, but I'm surprised that my suds_memcache.py is still useful. I've gone ahead and made it a gist to make it easier to get to/find and so you can easily fork it:
https://gist.github.com/jjwatt/f263b00a2827d6decbfd42a0734872fb

RESTful Web service or API for a Python program in WebFaction

I have developed a few python programs that I want to make available online.
I am new to web services, and I am not sure what I need to do in order to create a service where somebody makes a request to an URL (for example), and the URL triggers a Python program that displays something in the user's browser, or a set of inputs are given to the program via browser, and then python does whatver it is supposed to do.
I was playing with the google app engine, which runs fine with the tutorial, and was planning to use it becuase it looks easy, but the problem with GAE is that it does not work well (or does not work at all) with some libraries that I plan to use.
I guess what I am trying to do is some sort of API using my WebFaction account.
Can anybody point me in the right directions? What choices do I have in WebFaction? What are the easiest tools available?
Thank you very much for your help in advance.
Cheers
Well, your question is a little bit generic, but here are a few pointers/tips:
Webfaction allows you to install pretty much anything you want (you need to compile it / or ask the admins to install some CentOS package for you).
They provide some default Apache server with mod_wsgi, so you can run web2py, Django or any other wsgi frameworks.
Most popular Python web frameworks have available installers in Webfaction (web2py, django...), so I would recommend you to go with one of them.
I would also install supervisord to keep your service running after some reboot/crash/problem.
I would be glad to help you if you have any specific question...

Paypal integration with Google application engine-python

I have to integrate paypal with my application which is built on app engine patch with python.
I searched over the web and found some issues reported in paypal integration with google application engine like here:
http://groups.google.com/group/google-appengine/browse_thread/thread/9059b0750c45703b/b1d0611dd4b04273
There is a paypalx-gae-toolkit
http://code.google.com/p/paypalx-gae-toolkit/ but this is for java.
Is there a similar toolkit for python?
Please suggest.
Thanks in advance.
We have no problem accessing the paypal URL's FWIW...
The thread you are referencing is from 2008...
The official toolkit for Python wasn't released yet, so a promising library seems to be
paypal-python. It is actively developed at least. One problem is that it requires Python 2.6 or 2.7, but maybe it would not be hard to backport it to Python 2.5.
There are also some projects on Google Code, but none seems very updated.
Paypal-python works in 2.5.
Looks like an interesting post on IPN here. I haven't tried it.

Categories

Resources