From: Ben Darnell Date: Sun, 26 Aug 2012 23:45:35 +0000 (-0700) Subject: Make the openid claimed_id available in OpenIDMixin X-Git-Tag: v2.4.0~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30bc2332fbcc977790d00a9bb6e31c20f6f9e2bd;p=thirdparty%2Ftornado.git Make the openid claimed_id available in OpenIDMixin This should be used as a persistent identifier for the user since it is the only field guaranteed not to change. Closes #568. --- diff --git a/tornado/auth.py b/tornado/auth.py index 78ea9df80..9410c3688 100644 --- a/tornado/auth.py +++ b/tornado/auth.py @@ -203,6 +203,9 @@ class OpenIdMixin(object): user["locale"] = locale if username: user["username"] = username + claimed_id = self.get_argument("openid.claimed_id", None) + if claimed_id: + user["claimed_id"] = claimed_id callback(user)