code: func (m *mesosScheduler) createLoginToken() ([]byte, error) {
  	// create a signer for rsa 256
  	sm := jwt.GetSigningMethod("RS256")
  	mc := jwt.MapClaims{}
  	t := jwt.NewWithClaims(sm, mc)
  
  	// set our claims
  	mc["uid"] = m.uid
  
  	// set the expire time
  	// see http://tools.ietf.org/html/draft-ietf-oauth-json-web-token-20#section-4.1.4
  	mc["exp"] = time.Now().Add(defaultLoginExp).Unix()
  
  	tokenString, err := t.SignedString(m.privateKey)
  	if err != nil {
  		log.Errorf("Token Signing error: %v\n", err)
  		return nil, err
  	}
  
  	log.Debugf("Login Token: %s\n", tokenString)
  
  	return []byte(tokenString), nil
  }
docs: //Create the DCOS login token based on the private key and uid