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]
  • #556 / Sep 17, 2010 10:32am

    joytopia

    76 posts

    Greg,

    I had the same problems before and I am glad, that I could help you.

    Best regards
    Bernd

  • #557 / Sep 23, 2010 8:16pm

    jonldavis

    6 posts

    Now to take a good look at your library!  I’ll be wanting to drop in reCAPTCHA, OpenID and possibly LDAP in due course…

    I’m working on integrating CI with an existing intranet, and LDAP is exactly what I need. The existing libraries are pretty cumbersome to use, so if any progress is made on an Ion/LDAP feature, I’d be interested. I had started on my own (non-Ion) library already, but if there’s progress on this, I’d love to know.

    For another project OpenID would be the best way, but I haven’t started even looking at that yet.

  • #558 / Sep 24, 2010 11:40am

    carvingCode

    380 posts

    I’m getting a MySQL error when dumping in the table create query text.  I’m using the version of ion_auth I got from GitHub today.  MySQL version is: 5.1.36

    The error seems to be related to the ‘id int NOT NULL IDENTITY(1,1)’ line.

    I’ve been using an earlier version of ion_auth (from June ‘10) and the table structures seem to have changed since then.

    Any assist would be helpful.

  • #559 / Sep 24, 2010 3:53pm

    wortell

    13 posts

    Hmmm not sure what i’m doing wrong,...

    i’m using HVMC, with the latest of CI (2.0) and MS/E (5.3+) and have other similar modules running perfectly…

    goal:
    try to keep the ion_auth stuff as a module of authentication… thusly, inside the modules/ folder.

    as a result of looking at the pyrocms (for example only) by @Phil, I’m doing what I need to do… in my case I made an “modules/auth/” and all the files are in there… including the config/,views/, etc….

    the trouble I’m running into apparently is that it’s:

    An Error Was Encountered
    
    The configuration file auth/ion_auth.php does not exist.

    which is interesting cuz in the auth.php controller itself i literally (right before the config file is loaded) - do a fetch on the module - just to see if that’s keeping it’s value:

    public function __construct()
        {
            $this->ci =& get_instance();
    
            echo $this->ci->router->fetch_module();
                    // result: "auth"
    
            $this->ci->load->config('auth/ion_auth', TRUE);
            $this->ci->load->library('email');
            $this->ci->load->library('session');
            $this->ci->lang->load('auth/ion_auth');
            $this->ci->load->model('auth/ion_auth_model');
            $this->ci->load->helper('cookie');

    I’m sure this is elementary but after scrubbing forums, search, etc… i’m alas left with a forum submission…

    thanks for any and all who can help.


    UPDATE!!!!
    ————————————
    for some reason the auth thing now works… (i think i was juggling 3 ways to get it to work and after rifling thru and backing it all out… all seems better…

    BUT!
    now, my situation is that it definitely loads the /modules/auth/config/ion_auth.php file correctly, and yet it gives me now this error…

    An Error Was Encountered
    
    Unable to locate the file: auth/login.php

    it’s happening on one of those redirect(‘auth/login’)‘s i think but i’m not sure why it’s saying that auth/login.php doesn’t exist, cuz it’s clearly in the view area.

    (this is where I’m gonna look stupid, i can feel it!)


    I think it’s because my naming it “auth” and there’s a folder in view/ as auth/ that things are getting auth’d up… 😊

    will try renaming it to users. and try once more.

  • #560 / Sep 24, 2010 7:15pm

    Ben Edmunds

    812 posts

    carvingCode,

    Looks like you’re using the MS SQL file instead of the MySQL file.  The MySQL file is named ion_auth.sql.

  • #561 / Sep 24, 2010 7:16pm

    Ben Edmunds

    812 posts

    wortell,

    You don’t load the Ion Auth config or model, the library handles it.  But because of that you have to check the config and model loading in the library to include your module name.

  • #562 / Sep 25, 2010 12:06am

    wortell

    13 posts

    wortell,

    You don’t load the Ion Auth config or model, the library handles it.  But because of that you have to check the config and model loading in the library to include your module name.

    without sounding over-presumptuous about me knowing what i’m doing, i feel i’ve got a good grip on modules, etc…

    but…

    point being… i’m not trying to load it up… (i don’t think).

    localhost/auth/ and it directs me to go to localhost/auth/login
    then i get the pre-stated error…

    am i missing something?

    figured by going to /auth
    is what i would need to do to login (obviously I’m wrong).

    hmmm

    assuming i am indeed using it incorrectly… does this mean i load the library and then call the view(login) when in the model?

    sorry, just looking for SOME example on it… in use… thanks
    and I’ve looked at pyrocms a lot as well…

    thanks

  • #563 / Sep 27, 2010 6:34am

    bunal

    23 posts

    Hi,

    I’ve search the post but couldnt find an answer to these.

    1.) How to assign a user to more than one group. If it is not builtin to library has any one implemented it?

    2.) How to create one to many meta? For example multiple/unlimited telephones or twitter account usernames?

    Thanks for this great lib!

  • #564 / Sep 28, 2010 1:02pm

    carvingCode

    380 posts

    carvingCode,

    Looks like you’re using the MS SQL file instead of the MySQL file.  The MySQL file is named ion_auth.sql.

    doh… Thanks, Ben.  ion_auth has performed very well on another app.  Nice work!

  • #565 / Sep 29, 2010 6:45pm

    bunal

    23 posts

    Hi Ben,

    Any thoughts on multiple group assignment and one to many meta (Details in previous post)

    Thanks

  • #566 / Sep 29, 2010 6:52pm

    wortell

    13 posts

    Hi Ben,

    Any thoughts on multiple group assignment and one to many meta (Details in previous post)

    Thanks

    was looking at this earlier today, and i think i would like to add another ‘catch-all’ meta table (aaaachooo! {like WordPress) 😉

    EDIT:
    actually, a serialized - base64’d array would work well too 😊 - just stinks for full/partial text searches 😊

  • #567 / Sep 29, 2010 7:44pm

    bunal

    23 posts

    Yip the wordpress like architecture would be perfect. Text search is important in most cases thats why it make me bypass base64 approach before. Thanks

  • #568 / Sep 30, 2010 6:40am

    akzidenz

    5 posts

    Hi everyone

    I was playing around with the CI2, Modular Extensions and Ion Auth
    This is what I did to get it working

    1. Get tip_codeigniter.zip (CI2.0)
    2. Extract, make sure it is running, set config.php
    3. Get Modular Extension
      http://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc/wiki/Home
    4. Install - Copy MY_Loader & MY_Router to core, MX to third party folder
      Do not copy MY_Controller - this is for Modular Separation and not Extensions
    5. Get Ion_Auth
      http://github.com/benedmunds/CodeIgniter-Ion-Auth
    6. Install the sql
    7. Put ion_auth into a modules folder /application/modules/users
    8. Add route
      $route[‘auth/(.*)’] = ‘users/auth/$1’; 
    9. Autoload ion_auth
      $autoload[‘libraries’] = array(‘database’,‘session’,‘users/ion_auth’);
    10. Edit paths
          $this->ci->load->config(‘users/ion_auth’, TRUE);
          $this->ci->load->library(‘email’);
          $this->ci->load->library(‘session’);
          $this->ci->lang->load(‘users/ion_auth’);
          $this->ci->load->model(‘users/ion_auth_model’);

    Just in case anyone was trying… 😊

  • #569 / Sep 30, 2010 8:54am

    wortell

    13 posts

    Hi everyone

    I was playing around with the CI2, Modular Extensions and Ion Auth
    This is what I did to get it working

    1. Get tip_codeigniter.zip (CI2.0)
    2. Extract, make sure it is running, set config.php
    3. Get Modular Extension
      http://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc/wiki/Home
    4. Install - Copy MY_Loader & MY_Router to core, MX to third party folder
      Do not copy MY_Controller - this is for Modular Separation and not Extensions
    5. Get Ion_Auth
      http://github.com/benedmunds/CodeIgniter-Ion-Auth
    6. Install the sql
    7. Put ion_auth into a modules folder /application/modules/users
    8. Add route
      $route[‘auth/(.*)’] = ‘users/auth/$1’; 
    9. Autoload ion_auth
      $autoload[‘libraries’] = array(‘database’,‘session’,‘users/ion_auth’);
    10. Edit paths
          $this->ci->load->config(‘users/ion_auth’, TRUE);
          $this->ci->load->library(‘email’);
          $this->ci->load->library(‘session’);
          $this->ci->lang->load(‘users/ion_auth’);
          $this->ci->load->model(‘users/ion_auth_model’);

    Just in case anyone was trying… 😊

    where the freakin’ bloody he@%#@$ were you 6 days ago!!!! aaargh!
    verbatim of what I did… but after a bit of monkeying around.

    Thanks tho - seriously you summarized it well.

    ONE MODIFICATION [on my installation]:
    ———————————————————
    I did indeed use a MY_Controller.php to allow for the MS + E, but used it primarily to control Public/Admin Controllers using the DRY method by Phil S.

    other than that… verbatim (+6 days of ‘no joy’ before that).

  • #570 / Sep 30, 2010 4:24pm

    felyx

    40 posts

    I got a very simple question. Ion Auth is very very good so far but the documentation says username email password additional data all required, what if i dont want to have username or additional data? Thank you for your hard work Ben anyways!

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

ExpressionEngine News!

#eecms, #events, #releases