Hi,

I am new to Pyramid, and got stuck with openid - pyramid connection.

Running Pyramid 1.1, I tried to bind openid_jquery.js[1] to
pyramid_openerp[2].

my development.ini file:
openid.store.type = file
openid.store.file.path = %(here)s/sstore
openid.success_callback = jatek.user:remember_me
openid.param_field_name = openid_identifier

my config part:
    config.add_route("login", "/login")
    config.add_view("jatek.user.login",
                    route_name="login",
                    renderer="templates/login.pt")
    config.add_route('verify_openid', '/dologin')
    config.add_view("pyramid_openid.verify_openid",
                    route_name="verify_openid",
                    renderer='templates/mytemplate.pt')

Here "login.pt" is the html login example from openid_jquery, I have
only changed its form's action to point to /dologin.

As a test, I'm running the test server from python_openid [3].

The test server is called from /login, and it tries to get back to my
page, but it gets redirected again and again to itself as
"incoming_openid_url" is set when the verify_openid method gets
called.

I managed to get around this by hacking the code a bit, but as a
newbie to Pyramid and OpenID, I am not self-confident, and don't want
to break the code.

Are there other packages providing openid consumer functionality? Or
could someone point me to a nice tutorial for pyramid_openid, please?

Have a nice day!
Viktor

[1] http://code.google.com/p/openid-selector/
[2] http://pypi.python.org/pypi/pyramid-openid/
[3] https://github.com/openid/python-openid

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to