From 30bc2332fbcc977790d00a9bb6e31c20f6f9e2bd Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Sun, 26 Aug 2012 16:45:35 -0700 Subject: [PATCH] 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. --- tornado/auth.py | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.47.2