解析-为将来的用户使用ACL [英] Parse - using ACL for future users

查看:94
本文介绍了解析-为将来的用户使用ACL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在基于解析的应用程序中,每个用户默认都有一个私人注释列表. 该用户将可以邀请其他用户(由其电子邮件地址标识)查看注释.

On my parse based application, each user will have a list of notes that are private to him by default. The user will be able to invite other users (identified by their email address) to view the notes.

我想为此使用ACL,但想知道如果受邀请用户尚未注册为邀请解析用户,该怎么办.在这种情况下,注释创建者用户无法将其添加到注释的ACL中,因为还没有ParseUser对象.

I want to use ACL for that, but was wondering what should I do if the invited user is not registered yet as a Parse user on invitation. In that case, the notes creator user cannot add him to the note's ACL since there is no ParseUser object yet.

这种邀请的最佳解决方案是什么?

What is the best solution for this type of invitation?

我可以为此使用ACL,还是必须自己管理访问权限?

Can I use ACL for this or do I have to manage the access myself?

推荐答案

如果您熟悉称为Cloud Code的Parse技术,则应检查此

If you're familiar with Parse technology called Cloud Code then you should check this https://gist.github.com/mikevansnell/5140654

此代码从传递给该函数的电子邮件中创建将来的用户,并使用一些随机密码对其进行分配.然后,邀请电子邮件将连同所有信息(包括密码)发送到传递的电子邮件中.当受邀用户转到该应用时,只需填写登录信息

This code creates future user from the email passed to the function and asign it with some random password. And then an invitation email is send to the passed email with all the info, including password. And when the invited user goes to the app just fill the logi

这篇关于解析-为将来的用户使用ACL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆