#NEWLINE# def authenticate( self , remote_user ) : #NEWLINE# #INDENT# if ( not remote_user ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# email = remote_user_to_email ( remote_user ) #NEWLINE# try : #NEWLINE# #INDENT# user_profile = get_user_profile_by_email ( remote_user ) #NEWLINE# #UNINDENT# except UserProfile . DoesNotExist : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# if user_profile . is_mirror_dummy : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# return user_profile