mozsvc.user helpers for repoze.who

RESOLVED FIXED

Status

RESOLVED FIXED
7 years ago
7 years ago

People

(Reporter: rfkelly, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [qa-])

Attachments

(1 attachment)

(Reporter)

Description

7 years ago
Created attachment 583393 [details] [diff] [review]
patch with repoze.who helpers for mozsvc.user

This patch adds a "mozsvc.user.whoauth" module with some conveniences for authenticating via repoze.who.  The idea is that you just do this in your config:

    config.include("mozsvc.user.whoauth")

And you get auth based on repoze.who with sensible defaults.  The logic and defaults are identical to the repoze.who support in server-code from Bug 692709.

(Sorry the patch is a bit of mess, it moves mozsvc/user.py => mozsvc/user/__init__.py, but it doesn't change any of the content of the file.  Let me know if there's some way to make it cleaner)
(Reporter)

Updated

7 years ago
Depends on: 712549
(Reporter)

Updated

7 years ago
Attachment #583393 - Flags: review?(telliott)
Attachment #583393 - Flags: review?(telliott) → review+
(Reporter)

Comment 1

7 years ago
Committed in https://github.com/mozilla-services/mozservices/commit/6f7798d398fc81650744f01c111879b848df91c5
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.