Exemple #1
0
 def __init__(self, consumer=None, oauth_key=None, oauth_secret=None, request_attributes=None, *args,
              **kwargs):
     """Handle Google Auth
     
     This also handles making an OAuth request during the OpenID
     authentication.
     
     """
     OpenIDResponder.__init__(self, domain)
     self.consumer_key = self.config.get('consumer_key')
     self.consumer_secret = self.config.get('consumer_secret')
Exemple #2
0
    def __init__(self, consumer=None, oauth_key=None, oauth_secret=None, request_attributes=None, *args, **kwargs):
        """Handle Google Auth

        This also handles making an OAuth request during the OpenID
        authentication.

        """

        OpenIDResponder.__init__(self, domain)
        self.consumer_key = str(self.config.get("consumer_key"))
        self.consumer_secret = str(self.config.get("consumer_secret"))
        self.provider = request.POST.get("domain", domain)  # support for google apps domains
        self.consumer_class = GoogleConsumer
Exemple #3
0
    def __init__(self, consumer=None, oauth_key=None, oauth_secret=None, request_attributes=None, *args,
                 **kwargs):
        """Handle Google Auth

        This also handles making an OAuth request during the OpenID
        authentication.

        """

        OpenIDResponder.__init__(self, domain)
        self.consumer_key = str(self.config.get('consumer_key'))
        self.consumer_secret = str(self.config.get('consumer_secret'))
        self.provider = request.POST.get('domain', domain) # support for google apps domains
        self.consumer_class = GoogleConsumer
Exemple #4
0
 def __init__(self, consumer=None, oauth_key=None, oauth_secret=None, request_attributes=None, *args, **kwargs):
     """Handle Google Auth
     
     This also handles making an OAuth request during the OpenID
     authentication.
     
     """
     OpenIDResponder.__init__(self, domain)
     self.consumer_key = self.config.get("consumer_key")
     self.consumer_secret = self.config.get("consumer_secret")
     if not asbool(self.config.get("verified")):
         self.return_to_query["domain_unverified"] = 1
     # yahoo openid only works in stateless mode, do not use the openid_store
     self.openid_store = None
 def __init__(self, consumer=None, oauth_key=None, oauth_secret=None, request_attributes=None, *args,
              **kwargs):
     """Handle Google Auth
     
     This also handles making an OAuth request during the OpenID
     authentication.
     
     """
     OpenIDResponder.__init__(self, domain)
     self.consumer_key = self.config.get('consumer_key')
     self.consumer_secret = self.config.get('consumer_secret')
     if not asbool(self.config.get('verified')):
         self.return_to_query['domain_unverified']=1
     # yahoo openid only works in stateless mode, do not use the openid_store
     self.openid_store = None