tags:

views:

103

answers:

3

hello to all.im using python API in our research project.i read lot of ppt and material, and finally understand this concept now i have task to execute simple function which is chek user credential thorough openid provider and return successful after the valid user check.....

+3  A: 

Why not use Python OpenID library?

Josip
yes...i know but im new in this language.give me idea that how i should start this implementation
Rahul S
Josip
no,i understand concept of openid but i have confused where should i start first module to implement these function......
Rahul S
+2  A: 

To add to the recommendation of the Python OpenID library: their docs pages for the server and consumer modules both have useful Overview sections which you should read as a good starting point. The examples directory is also useful; I've written things starting from server.py and consumer.py from there.

Chris Boyle
thnks cmb,im trying to understand server.py and consumer,py programme.can u tell me more about this concept..
Rahul S
If you run either of those programs (as main, as in `python server.py`) you'll get an HTTP server which you can browse to (by default localhost:8000 for server, localhost:8001 for consumer). Then you can look at the behaviour of that demo and follow along in the code to see how it works. If that doesn't help, try asking a more specific question.
Chris Boyle
A: 

Here's ClickPass's recommendation: http://www.clickpass.com/docs/reference-language-libraries

sharjeel
thnks sharjeeli have testing one small function for socket but i havt got this error everytime.... code as belowimport sockets = socket.socket(socket.AF_INET, socket.SOCK_STREAM)s.connect("www.mcmillan-inc.com", 80)i found error -> Creating socket...Traceback (most recent call last): File "socketdemo.py", line 1, in ? import socket File "/usr/lib/python2.4/socket.py", line 4, in ? """\AttributeError: 'module' object has no attribute 'AF_INET'
Rahul S