电子邮件/密码验证Mongodb-stitch Android API

时间:2017-11-17 08:07:20

标签: mongodb mongodb-stitch

这似乎是一个非常新的话题,因为“针脚”或“mongodb-stitch”标签尚不存在。

我在cloud.mongodb.com上有一个mongodb altas群集。页面https://docs.mongodb.com/stitch/auth/email-auth/仅教授如何使用JS进行操作,但我手边没有服务器端JS。相反,我试图弄清楚如何使用Android API上的StitchClient做事。

我可以使用StitchClient.register(email,pwd)注册一个电子邮件/密码对,并使用令牌/ tokenId从no-reply+stitch@mongodb.com收到一封电子邮件。我复制了它们并使用了StitchClient.emailConfirm(token,tokenId)但是失败了。错误是:

Unexpected response code 404 for https://stitch.mongodb.com/api/client/v1.0/app/APP-ID/auth/local/userpass/confirm 

听起来很奇怪!我打开了一个浏览器并将其粘贴到URL中,并获得了404。我甚至做过

curl --data "token=432...345&tokenId=435..334" https://stitch.mongodb.com/api/client/v1.0/app/APP-ID/auth/local/userpass/confirm

仍然有404。

这是针对stitch.mongodb.com服务器的错误还是中断?

0 个答案:

没有答案
相关问题