(self, audience)
Create a self-signed JWT from the credentials if requirements are met.

        Args:
            audience (str): The service URL. ``https://[API_ENDPOINT]/``
Create a self-signed JWT from the credentials if requirements are met.
Create a self - signed JWT from the credentials if requirements are met .
def _create_self_signed_jwt(self, audience):
        """Create a self-signed JWT from the credentials if requirements are met.

        Args:
            audience (str): The service URL. ``https://[API_ENDPOINT]/``
        """
        # https://google.aip.dev/auth/4111
        if self._always_use_jwt_access:
            if self._scopes:
                self._jwt_credentials = jwt.Credentials.from_signing_credentials(
                    self, None, additional_claims={"scope": " ".join(self._scopes)}
                )
            elif audience:
                self._jwt_credentials = jwt.Credentials.from_signing_credentials(
                    self, audience
                )
            elif self._default_scopes:
                self._jwt_credentials = jwt.Credentials.from_signing_credentials(
                    self,
                    None,
                    additional_claims={"scope": " ".join(self._default_scopes)},
                )
        elif not self._scopes and audience:
            self._jwt_credentials = jwt.Credentials.from_signing_credentials(
                self, audience
            )
def _create_self_signed_jwt ( self , audience ) : # https://google.aip.dev/auth/4111 if self . _always_use_jwt_access : if self . _scopes : self . _jwt_credentials = jwt . Credentials . from_signing_credentials ( self , None , additional_claims = { "scope" : " " . join ( self . _scopes ) } ) elif audience : self . _jwt_credentials = jwt . Credentials . from_signing_credentials ( self , audience ) elif self . _default_scopes : self . _jwt_credentials = jwt . Credentials . from_signing_credentials ( self , None , additional_claims = { "scope" : " " . join ( self . _default_scopes ) } , ) elif not self . _scopes and audience : self . _jwt_credentials = jwt . Credentials . from_signing_credentials ( self , audience )