예제 #1
0
 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')
예제 #2
0
 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')
예제 #3
0
 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')
예제 #4
0
 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')