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.6.0

  • Lengthen username, email fields

0.5.0

  • update AnonymousUser class (has no table) to be __abstract__ for compatibility with newer SQLAlchemy.

0.4.1

  • don’t specify paster_plugins. need to re-evaluate template project.

0.4

  • upgrade to a normal version numbering scheme

  • generalize ‘persistent random secret’ code

0.3e-4

  • fix MANIFEST.in to include the .jinja2 templates

0.2e-4

  • update for 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.6.0.tar.gz (22.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stucco_auth-0.6.0-py27-none-any.whl (35.6 kB view details)

Uploaded Python 2.7

File details

Details for the file stucco_auth-0.6.0.tar.gz.

File metadata

  • Download URL: stucco_auth-0.6.0.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for stucco_auth-0.6.0.tar.gz
Algorithm Hash digest
SHA256 b3edabf6b0d693148e26741a79c5cf0e78db77842839ee664c84c0aa7912215f
MD5 b61c72f97f6207937204ad6524612275
BLAKE2b-256 727a798ca55ebfe7642a0d3e1e731ffa584ff81301e7771884c0f33e4599e09d

See more details on using hashes here.

File details

Details for the file stucco_auth-0.6.0-py27-none-any.whl.

File metadata

File hashes

Hashes for stucco_auth-0.6.0-py27-none-any.whl
Algorithm Hash digest
SHA256 a201f4fc12f3a6271c993350331e5c4481f32dae42c1d0ac8c546f6cde34ed4f
MD5 b9e6a56f55df3ca985af470048ea2f18
BLAKE2b-256 86e171fb97243e2050ea74789919871b6cf8d884584e8791782db3586a8d456b

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 Pingdom Monitoring Sentry Error logging StatusPage Status page