简体   繁体   English

解析登录后未返回用户提供的字段

[英]User-provided fields not returned upon parse-login

I'm using the Parse REST API to login to my app (using the endpoint: https://api.parse.com/1/login ). 我正在使用Parse REST API登录到我的应用程序(使用端点: https : //api.parse.com/1/login )。 According to the docs, I should, when I login receive all the user-provided fields, in other words, the custom fields for my User-object. 根据文档,我应该在登录时收到所有用户提供的字段,换句话说,就是我的用户对象的自定义字段。

From Parse Docs: 从“解析文档”中:

The response body is a JSON object containing all the user-provided fields except password. 响应主体是一个JSON对象,其中包含用户提供的所有字段 (密码除外)。 It also contains the createdAt, updatedAt, objectId, and sessionToken fields. 它还包含createdAt,updatedAt,objectId和sessionToken字段。

But I only receive the following: 但是我只收到以下内容:

{createdAt: "2015-01-28T20:21:23.554Z", objectId: "6Wg0lOKCww", sessionToken: "Mvgr5knHqnTfqlI6KqJBLSxBr", updatedAt: "2015-01-28T20:21:23.554Z", username: "testuser"}

Am I doing something wrong or understanding something wrong? 我是在做错事还是在理解错事? I would rather not have to query the Parse-server for additional data. 我宁愿不必向解析服务器查询其他数据。

Thank you! 谢谢!

Not sure if this was a bug in their system at the time, but it seems to work as intended now. 不确定这在当时是否是他们系统中的错误,但现在看来似乎可以正常工作。 Custom user fields are returned upon login (if they are not null/undefined). 自定义用户字段在登录时返回(如果它们不是null / undefined)。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何获得用户提供的图像的链接? - How do I get the link of the user-provided image? 我可以将用户提供的Javascript库列入白名单吗? - Can I whitelist libraries available to user-provided Javascript? 如何检测和停止用户提供的 JavaScript 代码中的无限循环? - How to detect and stop an infinite loop in user-provided JavaScript code? 如何在Android应用中运行用户提供的任意代码? - How to run user-provided, arbitrary code in an android app? 通过Javascript修复/清理用户提供的URL - Fixing/cleaning user-provided URLs via Javascript 上传,处理,存储和交付用户提供的文件和图像 - uploading, processing, storing and delivering user-provided files and images 如何创建用户提供的数字数组并将其映射到数字立方体的数组? - How can I create an array of user-provided numbers and map that to an array of the numbers' cubes? 从用户提供的字符串生成自定义 Blockly 块,无需 eval - Generate a custom Blockly block from a user-provided string without eval JS / XSS:将用户提供的字符串分配给变量时; 是否足以替换&lt;,&gt;和字符串分隔符? - JS/XSS: When assigning user-provided strings to variables; is it enough to replace <,>, and string delimiter? 将用户提供的URL数据安全准确地插入HTML5文档的正确方法是什么? - What is the right way to safely and accurately insert user-provided URL data into an HTML5 document?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM