Hey folks -

Can someone explain what restfultoken.js is doing in this code?

// Hopefully we can get rid of these with special @viewer and @owner tokens
// in the restful spec.
RestfulContainer.prototype.parseSecurityToken = function() {
  var parts = this.securityToken_.split(":");
  this.ownerId_ = parts[0];
  this.viewerId_ = parts[1];
  this.appId_ = parts[2];
};

That isn't going to work in the real world, since the gadget auth
token is encrypted.  I'd like to move the security token handling into
its own javascript package, but I don't see any way to migrate that
code.

Cheers,
Brian

Reply via email to