Skip to content

Commit 30bc233

Browse files
committed
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 tornadoweb#568.
1 parent 4386f1b commit 30bc233

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tornado/auth.py

+3
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ def get_ax_arg(uri):
203203
user["locale"] = locale
204204
if username:
205205
user["username"] = username
206+
claimed_id = self.get_argument("openid.claimed_id", None)
207+
if claimed_id:
208+
user["claimed_id"] = claimed_id
206209
callback(user)
207210

208211

0 commit comments

Comments
 (0)