authkit

User Authentication in Pylons + AuthKit

I am trying to create a web application using Pylons and the resources on the web point to the PylonsBook page which isn't of much help. I want authentication and authorisation and is there anyway to setup Authkit to work easily with Pylons? I tried downloading the SimpleSiteTemplate from the cheeseshop but wasn't able to run the setup-...

can pylons + authkit ignore particular responses with 401 status?

hey all ... i am writing a pylons app, and I am using authkit for authentication/authorization. if a user is not logged in and hits a page that requires authorization, authkit swallows the 401 (not authenticated) response and redirects to a login page. this is great for the web interface, but not great for our web services. when an una...

How to make authkit session cookie HttpOnly in pylons?

Hi there! I use authkit module with Pylons and I see that session cookie it sets (aptly named authkit) is not set to be HttpOnly. Is there a simple way to make it HttpOnly? (By "simple" I mean the one that does not involve hacking authkit's code.) ...

Customize login page template for Authkit with Pylons?

I'm new to both Pylons and AuthKit. I have basic authentication via AuthKit working in my application, but I don't know how to customize the template for the login page. The one included with AuthKit is very generic. I found Pylons: Mako Templates in AuthKit, but I thought there might be a more up-to-date solution. ...

Python-LDAP integration BABY

Hello all. I need to integrate Python with LDAP. I just need to choose the best way to make Python talk to LDAP. I understand there are many ways to do this, including using a prebuilt toolkit such as the AuthKit or writing a thing ourselves with LDAP modules and functions. What do you recommend? Thanks everyone, I love you ...

Why would I get an intermittent UnboundExecutionError from SQLAlchemy on second WSGI request?

I am building a small WSGI application and I am having an intermittent problem with SQLAlchemy throwing an UnboundExceptionError. When it happens, it seems to happen exclusively on the second request the browser makes. Refreshing the page (and all following page view attempts) run fine. It seems to only happen on the second request. I ...

Pylons and AuthKit OpenID problem

Hi all! I have troubles setting up the support for openID authentication, using authkit and pylons. I set up everything as described in the cookbook, but still get the following error: File "/usr/lib/python2.6/dist-packages/authkit/authenticate/open_id.py", line 480, in __call__ return self.app(environ, start_response) File "/u...

How can I do authket authentication with Cookies and/or a GET/POST param?

I am building an application and I would like to try and use authkit for authentication and authorization. However, I know that I will be using swfupload and will not be able to rely on the auth cookie being passed through Flash. In the past I have rolled my own cookie/auth solution from the ground up but I would love to avoid doing that...

What does this code from AuthKit do? (where are these functions and methods defined?)

I am trying to implement my own authentication method for AuthKit and am trying to figure out how some of the built-in methods work. In particular, I'm trying to figure out how to update the REMOTE_USER for environ correctly. This is how it is handled inside of authkit.authenticate.basic but it is pretty confusing. I cannot find anyplac...

Pylons: Set global variable for Authkit user

How can I can set a global variable for the username of the logged-in user? At the moment i have the following code in all my controllers to get the username. I rather set it as a global variable if possible. request.environ.get("REMOTE_USER") I tried putting the same code in the app_globals.py file but it gave me the following error m...

Authkit - deferring action for HTTP '401' response to client application

Form, Redirect and Forward all send an unauthenticated user to a Form on a login page specified within an Authkit middleware application. I'd like to allow a client application to request a service via XHR and then present a custom 'client side' form if a HTTP status code of 401 is returned, which would then post to Authkit for authentic...

Pylons custom authorizer with Authkit?

how do i setup authkit for more authorizer? i want to give certain users admin rights, but only for their own page. thanks ...