5

I need a Codeigniter login library for user authentication. I use MongoDB as my database.

I have gone through some of the recommended libraries like Ion Auth, Tank Auth, DX Auth etc. but all use mysql databases.

Is there a recommended library which uses mongodb as a database?

I began converting one of the libraries above from mysql to mongodb insetions but it is getting too complex- many changes are needed and think I will end up messing it. Need help on a good library using mongodb.

sepehr
  • 17,110
  • 7
  • 81
  • 119
Ninja
  • 5,082
  • 6
  • 37
  • 59
  • have you made any progress? I'm going to use Tank Auth for a new project and I'm thinking of modifying it to use MongoDB. Worst case I just have mysql handle the user accounts and let mongodb deal w/ everything else. – sdot257 Nov 03 '11 at 19:26
  • Yes I have created a login library using MongoDb, based on Tank Auth library. I will post it to GitHub soon and give the link here – Ninja Jan 26 '12 at 06:00
  • Has Tank Auth been updated recently? Seems development has stopped and everyone is using Ben's code. – sdot257 Jan 28 '12 at 14:39

2 Answers2

3

Looks like https://github.com/benedmunds/CodeIgniter-Ion-Auth (Ion Auth) has now a MongoDB support. See the README section on GitHub.

Stephane Paquet
  • 2,315
  • 27
  • 31
1

I don't think any use it natively, but before you go converting things yourself you may want to check out this answer I made to a similar (non-dupe) question: oAuth and Codeigniter with MongoDB

It will get you started on a conversion with little work needed. I'd also recommend using ion auth, tank auth is huge and DX auth is outdated.

Community
  • 1
  • 1
lsl
  • 4,371
  • 3
  • 39
  • 54