如何使用 Spring 和 JSF 向客户端授予临时权限
你好,我有一个带有 spring 的小应用程序,我一直在添加安全性,这很好,但我需要允许特定客户端的临时权限可能会生成一个 GUID 来注入 URL,并将其发送到他们的电子邮件,内容如下:
Hi we need you to fill some information before start working on your task, please visit:
http://mydomain.com/information/information.jsf?id=6bbdeb67986e405793fbf75dr1F692a1
。 ...只是在特定时间或当他们填写该信息时...但我还没弄清楚该怎么做。
有人有好的方法吗?它不一定必须与 Spring 和 JSF 一起使用,但这对我有很大帮助!
谢谢
Hi i have a small application with spring and i've been adding security which is great but i need to allow temporary privileges to a specific client may generate an GUID to injecting into the URL, and send it to their email saying something like:
Hi we need you to fill some information before start working on your task, please visit:
http://mydomain.com/information/information.jsf?id=6bbdeb67986e405793fbf75dr1F692a1
.... just for an specific time or when they filled that information... but i haven't figure out how to do it.
DOes anyone has a good approach to do that?? it doesnt necesarilly has to be with Spring and JSF but that would help me a lot!
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在与用户帐户关联的数据库中存储一个令牌,您的应用程序将其解释为“具有编辑票证 #foobar 的特殊权限”,并在用户提交表单后删除该令牌。
Store a token in the database associated with the user's account that your application interprets as "Has special privilege to edit ticket #foobar", and remove the token once the user has submitted the form.