Codeigniter 3.x认证库? [英] Codeigniter 3.x Authentication Library?

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

问题描述

使用新的Codeigniter 3.0版本,你使用什么认证库?

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


  • Flexi验证非常好和鲁棒的伟大的文档的CI 2.0,但它是旧的,我可以看到它已停产。当然它不工作的开箱即用的CI 3.0。我已经测试了它,并尝试迁移到CI 3.0,但因为它使用旧的 ci_sessions 模式我已经看到,它有很多工作要重写所有的代码使用会话的部件。

  • 社区验证已经过验证。一个CI 3.0版本,但正如我所看到的,它有许多错误,它是不可靠的在这个时候。我已经测试它彻底,它不能正常工作,因为它有令牌的jar系统和它的cookie管理的问题。用户不能登录大多数时间,它被用作Codeigniter的整个第三方库,我个人不喜欢,因为它有很多文件/文件夹是耗时的维护。我喜欢简单的CI库与1-2模型,如flexi-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 2,直到进一步CI 3.0开发为止吗?

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.

推荐答案

让下来的票得到ya。

don't let the down votes get ya down.

查看Ion Auth
https:// github .com / benedmunds / CodeIgniter-Ion-Auth

check out Ion Auth https://github.com/benedmunds/CodeIgniter-Ion-Auth

看看读我,你必须重命名两个文件为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天全站免登陆