CodeIgniter Forums
flexi auth - A user authentication library for CodeIgniter - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forum-22.html)
+--- Thread: flexi auth - A user authentication library for CodeIgniter (/thread-54581.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34


flexi auth - A user authentication library for CodeIgniter - El Forum - 11-02-2012

[eluser]haseydesign[/eluser]
@chibuzor

I would suggest you try the basic library demo that I have posted previously @ http://ellislab.com/forums/viewreply/1037586/

If you can get this to work, then you know that your general setup and installation of the library is working okay, and that there is probably an error within your controller/model setup.

If this example doesn't work, then it suggests there is a problem with your installation of the library. In which case you will need to go through the installation guide - step by step (Its important everything is read through).




flexi auth - A user authentication library for CodeIgniter - El Forum - 11-05-2012

[eluser]AJReading[/eluser]
[quote author="haseydesign" date="1351925484"]@AJReading

I've updated the flexi auth library so that all SQL statements now use column names prefixed with table names.
[/quote]

Thanks for that and the priv message! I will test it out and feed back any issues I encounter. I'm not surprised it was a significant task, I found it quite a task when I started doing it myself. Glad I left it to you however Wink


flexi auth - A user authentication library for CodeIgniter - El Forum - 11-06-2012

[eluser]davidinchi[/eluser]
@haseydesign

I'm back with the same problem. I have been lots of test to know what is happen, why is logged out a user in chrome?.

Your demo worked fine in the server.

I've opened a thread here if you want to see more about this "thing":
http://ellislab.com/forums/viewthread/229267/


Best.


flexi auth - A user authentication library for CodeIgniter - El Forum - 11-07-2012

[eluser]haseydesign[/eluser]
@davidinchi

I've posted you a couple of ideas over on your other thread.
Good luck with it!


flexi auth - A user authentication library for CodeIgniter - El Forum - 11-09-2012

[eluser]Kamahl[/eluser]
Hi,

I have tested several Auth libraries but I must say this is the best. Thank you.

Do you plan to add 3rd-party APIs (at least FB, maybe Google)? I think it would make this library even more epic.


flexi auth - A user authentication library for CodeIgniter - El Forum - 11-09-2012

[eluser]Unknown[/eluser]
Any idea how to autoload the library?
I was playing around with it, but I see from the included demo (I couldn't find any other info, nor documentation) that a $this->auth needs to be created before using the flexi_auth library, which, to my opinion, is a bit cumbersome.
And I don't want/need to extend the core controller just for that one property.

P.S.
Perhaps a more detailed documentation and usage examples will be better, because at this moment (without looking at the source) I can only see the demo, which explains the features this lib offers, but no reference on how to use them.


-------- UPDATE ---------
I extended the core controller, to create the $this->auth variable, and all was working fine.
Now, does anyone have idea how to make this library work with the HMVC extension?


flexi auth - A user authentication library for CodeIgniter - El Forum - 11-12-2012

[eluser]haseydesign[/eluser]
@Kamahl
Thanks for the feedback, I would have loved to include 3rd party authentication api's with the library but I sadly don't have the time in the foreseeable future to implement it.

Coding the library, the demo and then writing the documentation takes up a lot of unpaid hours.
However, if someone else ever wants to jump in a give it a go, I am willing to lend a hand where and when I can help.

@ekstrakt
I realise having to define the $this->auth variable before loading the library is cumbersome and messy.
It was never intended to be done that way until a serious bug late in development of the library when using PHP 5.4 forced me to define the var before the library is loaded. Originally it was defined within the lite library model, but with PHP 5.4 the var could no longer be accessed by other library files.
If you reckon you know a better way of doing this within the library files themselves - please let me know!

As you already sussed out yourself, the only way to auto load the library is via extending CI's controllers - which to be honest - is something I do In nearly all of my own projects, so personally I don't find it a problem.

Regarding using the library with HMVC, I'm afraid I haven't tried using them together so cannot help on that matter.

For anyone looking for info on how to implement this, read up at the following:
http://ellislab.com/codeigniter/user-guide/general/core_classes.html
https://github.com/jamierumbelow/codeigniter-base-controller
http://www.highermedia.com/articles/nuts_bolts/codeigniter_base_classes_revisited


flexi auth - A user authentication library for CodeIgniter - El Forum - 11-19-2012

[eluser]Unknown[/eluser]
Great library... :-)

But, unless I'm missing something, I can't see how you create your first admin user?


flexi auth - A user authentication library for CodeIgniter - El Forum - 11-20-2012

[eluser]haseydesign[/eluser]
@Andy

If you are looking to just get started, then the easiest way to create your first admin user would be to copy the demo admin user from the SQL dump file included with the demo.

The login details for the main admin user within the demo is as follows:
Email: [email protected]
Username: admin
Password: password123

Alternatively, you could create a form that would submit your admin users details and then create an account for them using the insert_user() function.
When calling the function, you would then define that the admin belongs to an admin group via the 'group_id' function argument.

I hope that helps you out.


flexi auth - A user authentication library for CodeIgniter - El Forum - 11-22-2012

[eluser]xuma[/eluser]
Great library @haseydesign

I am trying to create my own controller but it seems not working at localhost but working at server.Even login errors (flashdata) not seems working at localhost.Seems not related with library but if anyone have idea about it share with me please.

Thanks.