Skip to main content

This package intends to provide full authentication / authorisation implementation for pyramid applications

Project description

pyramid_fullauth

Latest PyPI version Number of PyPI downloads Wheel Status Egg Status License

Pyramid fullauth’s goal is to provide full plug-in registration functionality for pyramid, with user managing

Package status

Tests Coverage Status Requirements Status

Package resources

Installation

pip install pyramid_fullauth

or add pyramid_fullauth to your setup.py requirements.

Tests

You’ll need: packages defined in extra_requires[tests] to run tests, and then:

py.test

CHANGELOG

0.4.0

  • python 3 compatibility (without oauth2 though)

  • cleared use of deprecated pyramid.security.authenticated_userid in favour of pyramid.request.Request.authenticated_userid

  • make email fields case insensitive by using hybrid properties and CaseInsensitive comparator for model.

0.3.3

  • Fix issue where groupfined was returning empty list instead of None when user did not existed

0.3.2

  • catch all HTTPRedirect instead of just HTTPFound.

  • redirect with HTTPSeeOther instead of HTTPFound where applicable.

0.3.1

  • fixes MANIFEST.in to include yaml files - fixes #33.

0.3.0

Features

  • configure root factory if it hasn’t been already done

  • configure session factory only if it hasn’t been configured before

  • configure authorization policy only if it hasn’t been configured before

  • configure authentication policy only if it hasn’t been configured before

  • logged in user will be redirected always away from login page

  • views reorganisation - grouping by their function

  • replaced force_logout decorator with logout request method

  • small login view simplification

tests

  • rewritten tests to use pytest_pyramid

  • unified session with pyramid_basemodel’s

  • parametrize tests against two most recent pyramid versions and sqlalchemy

  • turned on pylama to check code with linters:
    • pep8

    • pep257

    • pyflakes

    • mccabe

  • add pytest-dbfixtures, and run tests against postgresql and mysql as well

  • drop python 2.6 from tests

  • 100% test coverage

0.2.3

  • weaker pyramid_yml requirements. Use registry['config'] instead of request.config which gets added only when explicitly including tzf.pyramid_yml package.

  • remove default_config with permission set for forbidden views. Throwning errors in pyramid 1.5a3

  • remove lazy=’load’ for relationship between AuthenticationProvider and User models as it was incorrect. Fixes error while using with sqlalchemy 0.9

0.2.2

  • copy all headers when login user. fixes issue, when headers set in AfterLogin event would not get passed

0.2.1

  • fixed csrf_check in password:reset:continue action

  • updated translation files

0.2.0

  • migrated tests to py.test

  • removed nose and lxml from test requirements

  • extracted UserEmailMixin from User model

  • validation exception improvements

  • set licensing to MIT License

  • fixed general error message for register_POST processing

  • activate action no longer gives 404 error after first use. Default is message about token being invalid or used [veronicazgirvaci]

  • extending csrf_check predicate:
    • Can be turned on/off in settings.

    • Failed check rises 401 Unauthorised error

Backwards Incompatibilities

  • token variable is changed into csrf_token in fullatuh views

  • view no longer returns error messages on failed csrf token. Rises 401 Unauthorised error instead.

0.1.0

  • add localize to requirements. Ability to translate registerlogin communicates

  • ability to set custom session factory [with Veronica Zgirvaci help]

  • moved password validation to one place

Project details


Download files

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

Source Distribution

pyramid_fullauth-0.4.0.tar.gz (49.3 kB view details)

Uploaded Source

Built Distributions

pyramid_fullauth-0.4.0-py3.4.egg (133.8 kB view details)

Uploaded Source

pyramid_fullauth-0.4.0-py3.3.egg (135.6 kB view details)

Uploaded Source

pyramid_fullauth-0.4.0-py2.py3-none-any.whl (67.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pyramid_fullauth-0.4.0.tar.gz.

File metadata

File hashes

Hashes for pyramid_fullauth-0.4.0.tar.gz
Algorithm Hash digest
SHA256 0bc622aad9e2936bfb1e242f0f02f670a144655c8d49c579c7b29a132dac4731
MD5 1c22b4cd5259356d2697619241c10c14
BLAKE2b-256 c46ac934d7457e47f40756282d930d5c22d5bfee048ac00884a05f77f24edc9d

See more details on using hashes here.

File details

Details for the file pyramid_fullauth-0.4.0-py3.4.egg.

File metadata

File hashes

Hashes for pyramid_fullauth-0.4.0-py3.4.egg
Algorithm Hash digest
SHA256 89b7c3357802697d9fea983784c37d562d799f295945fe07e04991efac64b378
MD5 e8e53d9ea8dca7ea4c98be4c31a7e3ab
BLAKE2b-256 f1797506b1af202e8cda28b139058c4f5cd895f21c4245ac902f5869735cbff0

See more details on using hashes here.

File details

Details for the file pyramid_fullauth-0.4.0-py3.3.egg.

File metadata

File hashes

Hashes for pyramid_fullauth-0.4.0-py3.3.egg
Algorithm Hash digest
SHA256 e3beeeb07ab3a463e71490f51da37f31d8eb60d7b38b6d120f687955cf03779d
MD5 dc52f52bcb5ad4b53cc5c45f2967465a
BLAKE2b-256 f84cc247dc8315b43a30da98507a0dac679888c190ee903f3d530f376fb43a72

See more details on using hashes here.

File details

Details for the file pyramid_fullauth-0.4.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pyramid_fullauth-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4fce9952391c8202e5bcc31e7755b6048a32835be969bdb6b48987e3bf104fc5
MD5 f8f4da689393312d8fe82b097111f48d
BLAKE2b-256 5f97bdff817c0b38c6cadc6a6134d70b0f110c027bf62e95c64c6dff86cc0e85

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page