Skip to main content

SQLAlchemy-backed username/password authentication for the Pyramid web framework.

What You Get

  • Versioned schema with stucco_evolution

  • SQLAlchemy-mapped User, Group, and Settings classes

  • BCRYPT password encryption with cryptacular

  • Pyramid views to login and logout

  • Traversal, not routes

  • Jinja2 templates for the views

  • Uni-Form CSS themed login form

  • YUI 3 CSS in the base template

  • 99% test coverage

What You Don’t Get

  • Any express or implied warranties, including, without limitation, the implied warranties of merchantibility and fitness for a particular purpose.

Requirements

It’s easy enough to add the stucco_auth views to your application by calling:

from pyramid.config import Configurator
config = Configurator(...)
config.include('stucco_auth.config')

Unfortunately, stucco_auth requires many things from a host Pyramid application before it will work properly:

  • A configured authentication and authorization policy. Login and logout views don’t make sense otherwise.

  • A transaction-managed SQLAlchemy session made available as request.db

  • stucco_auth’s schema instantiated into that database

  • request.session for flash messages

  • Jinja2 templating

  • A stucco_auth.interfaces.IAuthRoot instance in the resource tree. login/ and logout/ are resolved relative to this object.

The demo application, stucco_auth.main(), provides one example of how to set this up.

If you have any questions, please ask DanielHolth in IRC or on one of the Pylons mailing lists.

0.2e-5

  • update for compatibility with stucco_evolution >= 0.33

0.1e-6

  • 99% test coverage

0.1

  • Remove everything except the most basic user/groups/login functionality

0.0

  • Initial version

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stucco_auth-0.2e-5.tar.gz (21.2 kB view details)

Uploaded Source

File details

Details for the file stucco_auth-0.2e-5.tar.gz.

File metadata

  • Download URL: stucco_auth-0.2e-5.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for stucco_auth-0.2e-5.tar.gz
Algorithm Hash digest
SHA256 953920be2b0c7dbb15d6bc4daaf9e871feebb5e3617a0a5de7596eb32184518b
MD5 08be3964dea512228e055f21350b0ec0
BLAKE2b-256 3dd12e9a1158afa5c7a29bec086dbc5a90e24296d2875f6463e62df765fd16bf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page