parameters: (signer, payload)
return_statement: return '.'.join(segments)
docstring: Make a signed JWT.
  
    See http://self-issued.info/docs/draft-jones-json-web-token.html.
  
    Args:
      signer: crypt.Signer, Cryptographic signer.
      payload: dict, Dictionary of data to convert to JSON and then sign.
  
    Returns:
      string, The JWT for the payload.
docstring_summary: Make a signed JWT.
docstring_tokens: Make a signed JWT .
function: def make_signed_jwt(signer, payload):
    """Make a signed JWT.
  
    See http://self-issued.info/docs/draft-jones-json-web-token.html.
  
    Args:
      signer: crypt.Signer, Cryptographic signer.
      payload: dict, Dictionary of data to convert to JSON and then sign.
  
    Returns:
      string, The JWT for the payload.
    """
    header = {'typ': 'JWT', 'alg': 'RS256'}
  
    segments = [
            _urlsafe_b64encode(_json_encode(header)),
            _urlsafe_b64encode(_json_encode(payload)),
    ]
    signing_input = '.'.join(segments)
  
    signature = signer.sign(signing_input)
    segments.append(_urlsafe_b64encode(signature))
  
    logger.debug(str(segments))
  
    return '.'.join(segments)
function_tokens: def make_signed_jwt ( signer , payload ) : header = { 'typ' : 'JWT' , 'alg' : 'RS256' } segments = [ _urlsafe_b64encode ( _json_encode ( header ) ) , _urlsafe_b64encode ( _json_encode ( payload ) ) , ] signing_input = '.' . join ( segments ) signature = signer . sign ( signing_input ) segments . append ( _urlsafe_b64encode ( signature ) ) logger . debug ( str ( segments ) ) return '.' . join ( segments )