如何在phoenix中实现用户身份验证 [英] How to implement user authentication in phoenix

查看:170
本文介绍了如何在phoenix中实现用户身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用phoenix创建一个webapp,我想知道有什么更好的方法可以在其中实现用户注册/身份验证和会话管理.

I was creating a webapp in phoenix, I was wondering what could be a better way to implement user registration/authentication and session management in it.

在谷歌搜索中,我发现了这两个库: addict

On googling I found these two libraries: addict and passport

但是我不确定这些产品有多稳定,是否在某个地方的生产中使用它们.请让我知道是否有一些安全可用于生产的库,以及是否有一些示例实现.

But I am not sure how much stable are these and are they being used in production somewhere. Please let me know if there are some libraries safe to use in production and if there are some example implementation of those.

推荐答案

Addict似乎是更成熟的项目,并且现在似乎是一个"项目.为了找到良好的Elixir库,我总是喜欢咨询 Awesome Elixir Github存储库.

Addict seems to be the more mature project and appears to be "the one" right now. In order to find good Elixir libraries, I always like to consult the Awesome Elixir Github repo.

这篇关于如何在phoenix中实现用户身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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