﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
20671	Custom backend get_user function is assumed to search by primary key	elliot.smith91@…	nobody	"https://docs.djangoproject.com/en/1.4/topics/auth/#other-authentication-sources claims that:

The get_user method takes a user_id – which could be a username, database ID or whatever – and returns a User object.

However when using a custom authentication source and functions such as login_required the session would call get_user when needed passing the user primary key (as stored in the session).

As such, either the UserProfile should have a get_identifying_token function which replaces the primary key in the session's _auth_user_id field or the documentation should note that primary key is required when using the session middleware."	New feature	new	contrib.auth	1.5	Normal		session, auth, custom		Accepted	0	0	0	0	0	0
