1
class OpenIDMiddleware(object):
3
Populate request.openid and request.openids with their openid. This comes
4
eithen from their cookie or from their session, depending on the presence
5
of OPENID_USE_SESSIONS.
7
def process_request(self, request):
8
request.openids = request.session.get('openids', [])
10
request.openid = request.openids[-1] # Last authenticated OpenID