def claim_verify_oid(self, provider, username): if provider: oid_url = string.Template(provider).safe_substitute( username=username) else: oid_url = username return verify_oid(oid_url, failure_redirect='claim_oid', return_to='claim_process_oid', title='Claim OpenID', prompt='Click below to continue')
def login_verify_oid(self, provider, username, return_to=None): if provider: oid_url = string.Template(provider).safe_substitute( username=username) else: oid_url = username return verify_oid(oid_url, failure_redirect='.', return_to='login_process_oid?%s' % urlencode(dict(return_to=return_to)), title='OpenID Login', prompt='Click below to continue')