Re: Pyramid authentication options

2011-05-30 Thread Chris Withers

On 18/02/2011 23:13, whit wrote:



Ben Bangert was working on Velruse
http://packages.python.org/velruse/index.html during pyramid's
formative months. I'd look there for starters.



has anyone done an integration between velruse and pyramid that they'd
care to share?


I'm getting there, slowly...

So, here's how I plug Velruse in as a sub-app, although if you've got 
flexibility of deployment, I'd suggest hosting it as its own wsgi app 
seperately:


https://github.com/cjw296/jobs.python.org/blob/master/jobs/__init__.py#L34

The velruse.yaml config, minus the private keys (which is why it's not 
source controlled) looks like this:



Store:
Type: velruse.store.memstore:MemoryStore

OpenID:
Realm: http://http://pythonjobs.chrisw.info/
Endpoint Regex: http://http://pythonjobs.chrisw.info/loggedin

Yahoo: true

Google: true

OpenID Store:
Type: openid.store.memstore:MemoryStore


The html to launch into Velruse is here:

https://github.com/cjw296/jobs.python.org/blob/master/jobs/views/templates/login.pt

...but I haven't yet wired in the /loggedin view to do the right thing with:

https://github.com/cjw296/jobs.python.org/blob/master/jobs/authentication.py

...as I'm currently stuck with some Yahoo login issues with Velruse:

https://github.com/bbangert/velruse/issues/15
https://github.com/bbangert/velruse/issues/16

Any help with those gratefully received!

cheers,

Chris

--
Simplistix - Content Management, Batch Processing  Python Consulting
   - http://www.simplistix.co.uk

--
You received this message because you are subscribed to the Google Groups 
pylons-devel group.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.



Re: Pyramid authentication options

2011-05-30 Thread Michael Merickel

 The velruse.yaml config, minus the private keys (which is why it's not
 source controlled) looks like this:


Probably obvious, but you might want to go ahead and version control an
example yaml file with placeholders for the keys.

-- 

Michael

-- 
You received this message because you are subscribed to the Google Groups 
pylons-devel group.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.