Ejemplo n.º 1
0
 def __init__(self, client_id, client_secret, **kwargs):
     Social.__init__(self, client_id, client_secret, **kwargs)
     self.access_token_response = AccessTokenResponse
     try:
         self._scope = self.extra["scope"] # ",".join(self.extra["scope"])
     except KeyError:
         self._scope = ""
     self.token_response_body_type = "urlencoded"
Ejemplo n.º 2
0
 def __init__(self, client_id, client_secret, **kwargs):
     Social.__init__(self, client_id, client_secret, **kwargs)
     try:
         self.srv_discovery_url = kwargs["srv_discovery_url"]
     except KeyError:
         self.srv_discovery_url = None
     self.flow_type = FLOW_TYPE
     self.access_token_response = AccessTokenResponse
     self.client_cls = oic.Client
     self.authn_method = None