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"
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