oauth2_client/fetcher.py
def auth_payload(self):
        """
        Prepare authorization request payload according to RFC 7523.
        Generated claim has to be signed using RSA with SHA256.
        Application's X509 certificate's key is used as the signing key.
        Key's location is specified in `Application.client_secret` and has
        to be available for reading on the server machine.

        Returns:
            dict: payload as a dict
        """
        claim = self.jwt_claim()
        claim_signature = sign_rs256(claim.encode(), self.app.client_secret)
        claim_signature = urlsafe_b64encode(claim_signature).decode()

        auth_payload = {
            "grant_type": "urn:ietf:params:oauth:grant-type:jwt-bearer",
            "assertion": claim + "." + claim_signature
        }
        return auth_payload

        Prepare authorization request payload according to RFC 7523.
        Generated claim has to be signed using RSA with SHA256.
        Application's X509 certificate's key is used as the signing key.
        Key's location is specified in `Application.client_secret` and has
        to be available for reading on the server machine.

        Returns:
            dict: payload as a dict
        
Prepare authorization request payload according to RFC 7523.
Generated claim has to be signed using RSA with SHA256.
Application's X509 certificate's key is used as the signing key.
Key's location is specified in `Application.client_secret` and has
to be available for reading on the server machine.
Prepare authorization request payload according to RFC 7523 . Generated claim has to be signed using RSA with SHA256 . Application ' s X509 certificate ' s key is used as the signing key . Key ' s location is specified in ` Application . client_secret ` and has to be available for reading on the server machine .
def auth_payload(self):
        claim = self.jwt_claim()
        claim_signature = sign_rs256(claim.encode(), self.app.client_secret)
        claim_signature = urlsafe_b64encode(claim_signature).decode()
        auth_payload = {
            "grant_type": "urn:ietf:params:oauth:grant-type:jwt-bearer",
            "assertion": claim + "." + claim_signature
        }
        return auth_payload
def auth_payload ( self ) : claim = self . jwt_claim ( ) claim_signature = sign_rs256 ( claim . encode ( ) , self . app . client_secret ) claim_signature = urlsafe_b64encode ( claim_signature ) . decode ( ) auth_payload = { "grant_type" : "urn:ietf:params:oauth:grant-type:jwt-bearer" , "assertion" : claim + "." + claim_signature } return auth_payload
Prepare authorization request payload according to RFC 7523.
Prepare authorization request payload according to RFC 7523 .
"""
        Prepare authorization request payload according to RFC 7523.
        Generated claim has to be signed using RSA with SHA256.
        Application's X509 certificate's key is used as the signing key.
        Key's location is specified in `Application.client_secret` and has
        to be available for reading on the server machine.

        Returns:
            dict: payload as a dict
        """
payload as a dict
payload as a dict
dict
self