in reply to Re^3: 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?

Thank you for your answer, maybe one day be a module

I probably did not quite understand the last about Drupal API.
It's possible to send POST with username and password and receive an answer with user data ...
but then I myself have to check my cookie security by my system.
They need to generate, store, watch out if they are out of date, etc. It's harder, I think?
Perhaps this is the solution for those cases when the systems are in different servers.
But then an additional security risk?

  • Comment on Re^4: Integrating Perl cgi forms with Drupal site, any advise on unified login issue?

Replies are listed 'Best First'.
Re^5: Integrating Perl cgi forms with Drupal site, any advise on unified login issue?
by Anonymous Monk on May 27, 2013 at 09:07 UTC
    I don't think you get my meaning. Consider
    my $exitcod_zero_means_something = system '/usr/local/bin/drupal_fun_authenticator', '--cookie=cookie', ... ;;;;; ### or sub is_authorized { my ( $authcookie, ... ) = @_; my $wget = join ' ', map { "'$_'" } "--header=cookie:$authcookie", 'https://localhost:3000/hey_drupal_authenticate_by_cookie', ... ;;;;; my $json_auth_str = qx{wget $wget } my $auth = decode_json( $json_auth_str ); return 1 if $auth->{is_authorized}; return 0; }

    drupal, being so popular and what not, surely has such an interface -- I'd go looking for it -- official API is safer than peeking into the database

      Thank you. Yes, it is a interesting, and, I think, right way. But I do not find such modules in Drupal yet.