in reply to Re^2: Integrating Perl cgi forms with Drupal site, any advise on unified login issue?
in thread Integrating Perl cgi forms with Drupal site, any advise on unified login issue?
I would be grateful for comments and suggestions.
um, make it a module, a kwalitee module with documentation, that describes what it does , say something along the lines of
# is_user_valid( # is_user_loggedin( # is_user_user( # is_user( is_authenticated_drupal( dbi => $dbi, cookie => $cookie, ); # can_user_do_this( # is_user_allowed_to( is_authenticated_drupal( dbi => $dbi, cookie => $cookie , page => $page, section => $section, something_else => $something, );
But maybe you want to make it a CGI::Session::Auth plugin so you'd suit the interface to boot
But not having done anything DRUPAL, I'm not even sure this is the best way (raw SQL access) -- I can't imagine that drupal doesn't have an official api independent of backend for authorentication/authorization
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Integrating Perl cgi forms with Drupal site, any advise on unified login issue?
by dimuse_dioplut (Initiate) on May 27, 2013 at 08:48 UTC | |
by Anonymous Monk on May 27, 2013 at 09:07 UTC | |
by dimuse_dioplut (Initiate) on May 28, 2013 at 22:57 UTC | |
|
Re^4: Integrating Perl cgi forms with Drupal site, any advise on unified login issue?
by pmagunia (Initiate) on Sep 05, 2013 at 08:12 UTC | |
by dimuse_dioplut (Initiate) on Jan 20, 2015 at 12:57 UTC |