コード例 #1
0
    def __init__(self,
                 token_endpoint,
                 issuer,
                 subject,
                 audience=None,
                 grant_type=None,
                 claims=None,
                 token_placement='header',
                 scope=None,
                 **kwargs):

        client_kwargs = extract_client_kwargs(kwargs)
        Client.__init__(self, **client_kwargs)

        _AssertionClient.__init__(self,
                                  session=self,
                                  token_endpoint=token_endpoint,
                                  issuer=issuer,
                                  subject=subject,
                                  audience=audience,
                                  grant_type=grant_type,
                                  claims=claims,
                                  token_placement=token_placement,
                                  scope=scope,
                                  **kwargs)
コード例 #2
0
    def __init__(self, token_endpoint, issuer, subject, audience=None, grant_type=None,
                 claims=None, token_placement='header', scope=None, **kwargs):
        Session.__init__(self)

        token_url = kwargs.pop('token_url', None)
        if token_url:
            deprecate('Use "token_endpoint" instead of "token_url"', '1.0')
            token_endpoint = token_url

        AssertionClient.__init__(
            self, session=self,
            token_endpoint=token_endpoint, issuer=issuer, subject=subject,
            audience=audience, grant_type=grant_type, claims=claims,
            token_placement=token_placement, scope=scope, **kwargs
        )
コード例 #3
0
 def __init__(self,
              token_url,
              issuer,
              subject,
              audience,
              grant_type=None,
              claims=None,
              token_placement='header',
              scope=None,
              **kwargs):
     Session.__init__(self)
     AssertionClient.__init__(self,
                              session=self,
                              token_url=token_url,
                              issuer=issuer,
                              subject=subject,
                              audience=audience,
                              grant_type=grant_type,
                              claims=claims,
                              token_placement=token_placement,
                              scope=scope,
                              **kwargs)
コード例 #4
0
 def __init__(self,
              token_endpoint,
              issuer,
              subject,
              audience=None,
              grant_type=None,
              claims=None,
              token_placement='header',
              scope=None,
              **kwargs):
     Session.__init__(self)
     update_session_configure(self, kwargs)
     AssertionClient.__init__(self,
                              session=self,
                              token_endpoint=token_endpoint,
                              issuer=issuer,
                              subject=subject,
                              audience=audience,
                              grant_type=grant_type,
                              claims=claims,
                              token_placement=token_placement,
                              scope=scope,
                              **kwargs)
コード例 #5
0
    def __init__(self,
                 token_url,
                 issuer,
                 subject,
                 audience,
                 grant_type=None,
                 claims=None,
                 token_placement='header',
                 scope=None,
                 **kwargs):

        session = ClientSession(request_class=OAuth2Request)
        _AssertionClient.__init__(self,
                                  session=session,
                                  token_url=token_url,
                                  issuer=issuer,
                                  subject=subject,
                                  audience=audience,
                                  grant_type=grant_type,
                                  claims=claims,
                                  token_placement=token_placement,
                                  scope=scope,
                                  **kwargs)