Codeigniter 3.x 身份验证库? [英] Codeigniter 3.x Authentication Library?

查看:22
本文介绍了Codeigniter 3.x 身份验证库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在新的 Codeigniter 3.0 版本中,您使用哪些身份验证库?

With the new Codeigniter 3.0 version what authentication libraries do you use?

  • Flexi auth 非常好且健壮,为 CI 2.0 提供了很好的文档,但它已经过时了我可以看到它已经停产了.当然,它不适用于 CI 3.0 开箱即用.我已经对其进行了测试并尝试将其迁移到 CI 3.0,但是由于它使用了旧的 ci_sessions 模式,我发现要重写所有使用会话的代码部分需要做很多工作.不过,它似乎适用于文件会话及其代码的一些更改.
  • Community auth 有一个 CI 3.0 版本,但正如我所见,它有很多错误,而且无处可去目前接近可靠.我已经对其进行了彻底的测试,但它无法正常工作,因为它的令牌 jar 系统和 cookie 管理存在问题.用户在大多数情况下无法登录,并且它在 Codeigniter 中被用作整个第三方库,我个人不喜欢它,因为它有很多文件/文件夹需要花费时间来维护.我更喜欢具有 1-2 个模型的简单 CI 库,例如 flexi-auth.不过,如果 Community Auth 工作正常,我不会介意它的方法.
  • Tank Auth 过去是一个可靠的解决方案,但不适用于 Codeigniter 3.0,因为它有许多不兼容性也.询问了 有关其与 CI 3.0 兼容性的问题,但到目前为止还没有飞机出现在地平线上.
  • DX Auth 是一个旧的身份验证库,正如我在其 github 存储库中所见,在 CI 3.0 上有一些尝试迁移它,但我无法亲自测试其中任何一个.
  • Flexi auth was very good and robust with great documentation for CI 2.0 but it is old and as I can see it is discontinued. Of course it does not work out of the box with CI 3.0. I have tested it and tried to migrate it to CI 3.0 but as it uses the old ci_sessions schema I have seen that it has a lot work to be made to rewrite all the code parts that use sessions. It seems to work with file sessions and some alterations on its code though.
  • Community auth has a CI 3.0 version but as I have seen, it has many bugs and it is nowhere near reliable at this time. I have tested it thoroughly and it cannot work properly as it has problems with its token jar system and its cookie management. Users cannot login most of the times and it is being used as a whole third-party library at Codeigniter, which personally I don't like as it has a lot of files/folders that are time consuming to be maintained. I would prefer simple CI libraries with 1-2 models like flexi-auth. Although, I wouldn't mind Community Auth's approach if it worked properly.
  • Tank Auth was a reliable solution in the past but not with Codeigniter 3.0 as it has many incompatibilities too. Questions about its compatibility with CI 3.0 were asked but no airplanes in the horizon so far.
  • DX Auth is an old authentication library and as I can see on its github repository, there are some attempts to migrate it on CI 3.0 but I haven't been able personally to test any of them.

那么,有没有人成功地在大型 CI 3.0 Web 应用程序上集成(或迁移)任何前面提到的库?你自己写的吗?在进一步开发 CI 3.0 之前,您是否一直坚持使用 CI 2?

So, has anyone successfully integrated (or migrated) any of the previous mentioned libraries on large CI 3.0 web applications? Did you write your own? Did you stick with CI 2 until further CI 3.0 development for that matter?

这篇关于身份验证库的帖子 在 codeigniter 中非常受欢迎且很有帮助.我相信以这种方式帮助社区的帖子不应该在一些有用的答案之前关闭.之前没有在任何地方讨论过,我真的很想看看更有经验的开发人员对此的意见.

This post about Authentication libraries in codeigniter was very popular and helpful. I believe that posts that help the community in that way should not be closed at least not before some helpful answers. It is not discussed anywhere before and I would really like to see the opinions of more experienced developers for that.

推荐答案

不要让反对票让你失望​​.

don't let the down votes get ya down.

检查离子验证https://github.com/benedmunds/CodeIgniter-Ion-Auth

看看 read me,你必须为 codeigniter 3 重命名两个文件.否则你会看到 lib 有最近的变化.作者 Ben Edmunds 是新的 codeigniter 委员会的四位开发人员之一.http://www.codeigniter.com/help/about

take a look at the read me, you will have to rename two files for codeigniter 3. otherwise you can see that there are recent changes to the lib. the author Ben Edmunds is one of the four developers on the new codeigniter council. http://www.codeigniter.com/help/about

这篇关于Codeigniter 3.x 身份验证库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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