ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Ion Auth - Lightweight Auth System based on Redux Auth 2

February 10, 2010 7:00pm

Subscribe [287]
  • #811 / Mar 11, 2011 6:24pm

    Swissv2

    4 posts

    Thanks Wayne! I will definitely give that a look this weekend. CI has changed a bit, so its good to see people making progress.

  • #812 / Mar 12, 2011 9:34pm

    dudel

    8 posts

    For me, it`s working in CI 2.0 without that patch you were talking about few post ago ( this one )
    Should I be worried?

  • #813 / Mar 13, 2011 10:09pm

    Ben Edmunds

    812 posts

    dudel,

    We got a fix in for that issue a couple of weeks ago.  No need to patch the core anymore.

  • #814 / Mar 14, 2011 8:49am

    dudel

    8 posts

    Thank you Ben. I really appreciate what you`re doing here.
    Keep up the good work.

  • #815 / Mar 14, 2011 12:59pm

    Wayne Smallman

    176 posts

    I am trying to help now so post your controller code.

    Thanks for the reply, and apologies for not replying sooner. I’ll be replying to you via private message in a short while.

  • #816 / Mar 14, 2011 2:22pm

    JayArias

    45 posts

    are there going to be any facebook support in the future?

  • #817 / Mar 14, 2011 6:24pm

    Ben Edmunds

    812 posts

    JayArias,

    Not in the library.  You could make an library that relies on or extends Ion Auth for that purpose though if you like.

  • #818 / Mar 15, 2011 8:28am

    Maglok

    402 posts

    Awesome library.

    I have a question. I added a meta to users called ‘app_id’, which connects the user to an application.

    In my delete application function I want to delete both the user and the application. I have the application id, so I am trying to detect if there is a user that has the app_id == application id.

    I found the extra_where() function, but I am unsure of how to use it. I could query the meta table and all, but I have a feeling ion auth can do it for me.

    This is what I have so far:

    function delete_application($app_id) {
            // Check to see if there is a user connected to the application
    
            echo $this->ion_auth->extra_where("meta.aanmeldig_id = '" . $app_id . "'");

    I need the id of the user that has the application connected to it, so I can do a delete_user.

  • #819 / Mar 16, 2011 1:30pm

    dallen33

    88 posts

    Is there a quick guide for updating dx_auth users to ion_auth?

  • #820 / Mar 16, 2011 3:47pm

    Ben Edmunds

    812 posts

    Maglok,

    Something like this should do what you need:

    function delete_application($app_id) {
            // Check to see if there is a user connected to the application
    
            $this->ion_auth->extra_where("meta.aanmeldig_id", $app_id);
            $this->ion_auth->get_user($user_id);
  • #821 / Mar 16, 2011 6:59pm

    Ben Edmunds

    812 posts

    dallen33,

    No, the main thing you need to look at is the difference in the encryption algorithms.

  • #822 / Mar 17, 2011 1:55pm

    jk215

    8 posts

    Having trouble converting my Identity to ‘username’. I changed it in the config file but do I have to make edits elsewhere? Cant login by username in the login form.

  • #823 / Mar 17, 2011 6:57pm

    Oliver Zeyen

    4 posts

    hello! Hope somebody can help me!

    I can’t call any ion_auth methods AFTER I load a module.

    I’ve created an ion_auth module in a slightly different way wayne described. This module works fine, all actions of the demo application work like a charm. To avoid any calls of ion_auth AFTER a module is loaded, for example my navigation module in the template controller, I’ve build a cascade of controllers which extend each other.

    The first one, auth_controller extends the base controller and loads the ion_auth library from the module. Login status and userdata are fetched and checked by the corresponding methods of the library. I am forced do this, because any later call of ion_auth produces errors.

    The second controller is my template_controller which initializes all the base templates, loads all views and holds the public render function which is called in my application controllers. In this controller, view modules are merged into my templates. And thats the point. module loaded, good bye ion_auth.

    In my application controller: load ion_auth and call $this->ion_auth->get_userdata(); php gives me the following error:

    “Call to a member function userdata() on a non-object in /var/www/www.myserver.de/application/modules/auth/models/ion_auth_model.php on line 726” which points to “$this->session->userdata(‘user_id’);”

    also this warning is thrown: “Message: Undefined Property: navigation::$session Filename: core/Model.php Line Number: 50”

    Does anybody know a solution for this problem?

    By the way: This is my second attempt… I previously installed ion_auth “conventionally” as a simple library and not as a module with the same results… errors when calling it after a module.

  • #824 / Mar 18, 2011 1:00am

    Ben Edmunds

    812 posts

    Oliver,

    $this->ion_auth->get_userdata() isn’t an Ion Auth method, are you needing $this->ion_auth->get_user() instead?

  • #825 / Mar 18, 2011 1:00am

    Ben Edmunds

    812 posts

    jk215,

    Are you still having this issue?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases