|
_build_context(request,
extra_context=None) |
source code
|
|
|
ask_openid(request,
openid_url,
redirect_to,
on_failure=None)
basic function to ask openid and return response |
source code
|
|
|
complete(request,
on_success=None,
on_failure=None,
return_to=None,
**kwargs)
complete openid signin |
source code
|
|
|
default_on_success(request,
identity_url,
openid_response,
**kwargs)
default action on openid signin success |
source code
|
|
|
default_on_failure(request,
message,
**kwargs)
default failure action on signin |
source code
|
|
|
not_authenticated(func)
decorator that redirect user to next page if he is already logged. |
source code
|
|
|
signin_success(request,
identity_url,
openid_response,
redirect_field_name=REDIRECT_FIELD_NAME,
**kwargs)
openid signin success. |
source code
|
|
|
signin_failure(request,
message,
template_name='authopenid/signin.html',
redirect_field_name=REDIRECT_FIELD_NAME,
openid_form=OpenidSigninForm,
auth_form=AuthenticationForm,
extra_context=None,
**kwargs)
falure with openid signin. |
source code
|
|
|
signin(request,
template_name='authopenid/signin.html',
redirect_field_name=REDIRECT_FIELD_NAME,
openid_form=OpenidSigninForm,
auth_form=AuthenticationForm,
on_failure=None,
extra_context=None)
Signin page. |
source code
|
|
|
complete_signin(request,
redirect_field_name=REDIRECT_FIELD_NAME,
openid_form=OpenidSigninForm,
auth_form=AuthenticationForm,
on_success=signin_success,
on_failure=signin_failure,
extra_context=None)
in case of complete signin with openid |
source code
|
|
|
is_association_exist(openid_url)
test if an openid is already in database |
source code
|
|
|
register_account(form,
_openid)
create an account |
source code
|
|
|
register(request,
template_name='authopenid/complete.html',
redirect_field_name=REDIRECT_FIELD_NAME,
register_form=OpenidRegisterForm,
auth_form=AuthenticationForm,
register_account=register_account,
send_email=True,
extra_context=None)
register an openid. |
source code
|
|
|
signout(request,
next_page=None,
template_name='registration/logged_out.html')
signout from the website. |
source code
|
|
|
xrdf(request,
template_name='authopenid/yadis.xrdf')
view used to process the xrdf file |
source code
|
|
|
password_change(request,
template_name='authopenid/password_change_form.html',
set_password_form=SetPasswordForm,
change_password_form=PasswordChangeForm,
post_change_redirect=None,
extra_context=None)
View that allow a user to add a password to its account or change it. |
source code
|
|
|
associate_failure(request,
message,
template_failure="authopenid/associate.html",
openid_form=AssociateOpenID,
redirect_name=None,
extra_context=None,
**kwargs)
function used when new openid association fail |
source code
|
|
|
associate_success(request,
identity_url,
openid_response,
redirect_field_name=REDIRECT_FIELD_NAME,
send_email=True,
**kwargs)
function used when new openid association success. |
source code
|
|
|
complete_associate(request,
redirect_field_name=REDIRECT_FIELD_NAME,
template_failure='authopenid/associate.html',
openid_form=AssociateOpenID,
redirect_name=None,
on_success=associate_success,
on_failure=associate_failure,
send_email=True,
extra_context=None)
in case of complete association with openid |
source code
|
|
|
associate(request,
template_name='authopenid/associate.html',
openid_form=AssociateOpenID,
redirect_field_name=REDIRECT_FIELD_NAME,
on_failure=associate_failure,
extra_context=None)
View that allow a user to associate a new openid to its account. |
source code
|
|
|
dissociate(request,
template_name="authopenid/dissociate.html",
dissociate_form=OpenidDissociateForm,
redirect_field_name=REDIRECT_FIELD_NAME,
default_redirect=settings.LOGIN_REDIRECT_URL,
extra_context=None)
view used to dissociate an openid from an account |
source code
|
|