Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drupal Login using parameters for login and password in url

Tags:

drupal

In our application, we would like to make a link to an online help site built using Drupal.

The problem is that this site is password protected. We would like to put the username and password in the url, so that the login is automatically made when the user clicks on the link in our application.

Is it possible and how ?

like image 239
madewulf Avatar asked Jul 10 '09 12:07

madewulf


2 Answers

Well, doing exactly what you want (I think), can be done using the Autologin module for drupal (http://drupal.org/project/autologin), however, it is seriously not recommended for use, since it obviously means people's usernames and passwords are visible in the url, plus in any access logs. The project has therefore been discontinued, not even sure if it would work in the latest version of drupal.

Unfortunately, since drupal's form generation engine has XSS protection, it prevents you posting directly to the login page and hoping for the best.

There are a number of existing Single Sign On (SSO) solutions out there for drupal, although most of them integrate with another existing CMS or similar.

The final option is to roll your own authentication module, which somehow allows you to do this, but it's been a while since I wrote one, so take a look at the existing authentication methods drupal has for ideas.

like image 121
Alistair Evans Avatar answered Nov 14 '22 20:11

Alistair Evans


The current replacement for Autologin is the latest version of Securesite, which is likely what you really want.

like image 39
FGM Avatar answered Nov 14 '22 20:11

FGM



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!