Inloggen met Launchpad OpenID op de Wiki

Registered by Ronnie

OpenId vergemakkelijkt het registreren en inloggen op de wiki.

Blueprint information

Status:
Not started
Approver:
CeesSluis
Priority:
Undefined
Drafter:
Ronnie
Direction:
Needs approval
Assignee:
None
Definition:
Drafting
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Whiteboard

Implementatie:

Installeer het python openid pakket:
sudo apt-get install python-openid

Voeg de volgende code toe aan de wikiconfig.py (of een eigen config bestand)

# Bovenin
from MoinMoin.auth import MoinAuth
from MoinMoin.auth.openidrp import OpenIDAuth

# Bijna onderin
    auth = [
        MoinAuth(),
        OpenIDAuth(forced_service='https://login.launchpad.net/+openid'),
    ]

    cookie_lifetime = 12
    anonymous_session_lifetime = 12

Aanvulling:
Vanaf versie 1.9 gebruikt moinmoin de anonymous_session_lifetime niet meer. De parameter cookie_lifetime moet dan worden:

    cookie_lifetime = (2, 12)

http://moinmo.in/1.9OpenIDBrokenAfterAnonymousSessionLifetimeVariableChange

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.