DescriptionGet Launchpad team information from SSO
teams.py is copied verbatim from django-openid-auth. django-openid-auth
cannot be added as a requirement, because that would introduce a dependency on
django. I've emailed Anthony Lenton to see if we can come up with a better
long-term solution.
In order to use the teams extension, UbuntuSSOConsumer is introduced. This
also allows us to specify the identifier directly, simplifying our login URLs.
Since the teams extension requires us to specify which teams we care about,
I've specified 'charmers'.
Since AuthTktAuthenticationPolicy wants its callback to return a list of
principals, and since principals can be users or groups, I've tweaked the
naming of UserMgr.auth_groupfinder. It prefixes user ids with 'user ' and
Launchpad team ids with 'group '.
As a drive-by, dev-ingest is updated to use the correct python location.
https://code.launchpad.net/~abentley/charmworld/sso/+merge/141942
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 2
MessagesTotal messages: 2
|