~django-openid-auth/django-openid-auth/trunk

« back to all changes in this revision

Viewing changes to README.txt

  • Committer: Michael Hall
  • Date: 2011-08-23 17:48:54 UTC
  • mto: This revision was merged to the branch mainline in revision 85.
  • Revision ID: mhall119@ubuntu.com-20110823174854-6u31w9xa386w70k3
Cleanup exception class heirarchy and imports, make overriding the login failure handler a settings option, add additional test cases to veryfiy that overriding the handler works and that the proper exceptions are being passed

Show diffs side-by-side

added added

removed removed

Lines of Context:
154
154
If the user's OpenID provider supports the PAPE extension and provides the Physical Multifactor authentication policy, this will
155
155
cause the OpenID login to fail if the user does not provide valid physical authentication to the provider.
156
156
 
 
157
== Override Login Failure Handling ==
 
158
 
 
159
You can optionally provide your own handler for login failures by adding the following setting:
 
160
 
 
161
        OPENID_RENDER_FAILURE = failure_handler_function
 
162
 
 
163
Where failure_handler_function is a function reference that will take the following parameters:
 
164
 
 
165
        def failure_handler_function(request, message, status=None, template_name=None, exception=None)
 
166
 
 
167
This function must return a Django.http.HttpResponse instance.
 
168