コード例 #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 = ",".join(self.extra["scope"])
     except KeyError:
         self._scope = ""
     self.token_response_body_type = "urlencoded"
コード例 #2
0
    def __init__(self, consumer_key=None, consumer_secret=None, **kwargs):
        Social.__init__(self, **kwargs)

        self.consumer_key = consumer_key
        self.consumer_secret = consumer_secret
        self.authn_service_name = "Fall"
        self.authenticating_authority = "Foo"
        self.authorize_url = "http://localhost:8088/falltrough"
コード例 #3
0
ファイル: __init__.py プロジェクト: HaToHo/IdPproxy
    def __init__(self, consumer_key=None, consumer_secret=None, **kwargs):
        Social.__init__(self, **kwargs)

        self.consumer_key = consumer_key
        self.consumer_secret = consumer_secret
        self.authn_service_name = "Fall"
        self.authenticating_authority = "Foo"
        self.authorize_url = "http://localhost:8088/falltrough"
コード例 #4
0
ファイル: __init__.py プロジェクト: HaToHo/IdPproxy
 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
コード例 #5
0
ファイル: __init__.py プロジェクト: dv10den/IdPproxy
 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
コード例 #6
0
 def __init__(self, client_id, client_secret, **kwargs):
     Social.__init__(self, client_id, client_secret, **kwargs)
     self.consumer = oauth.Consumer(client_id, client_secret)