[horde] Logging into Horde from another website.

Michael M Slusarz slusarz at horde.org
Wed Jun 25 07:30:43 UTC 2014


Quoting Ernie Dunbar <maillist at lightspeed.ca>:

> On 2014-06-24 12:33, Michael M Slusarz wrote:
>
>> Quoting Ernie Dunbar <maillist at lightspeed.ca>:
>> Hi all. Way back in Horde 3.3.6, it used to be possible to log into  
>> Horde through a web form at another location, just using some  
>> embedded HTML form values, ie: <form  
>> action='https://webmail.lightspeed.ca/horde/imp/redirect.php [1]'>  
>> <input type=text size=25 name='imapuser' id='imapuser'> <input  
>> type=password size=25 name='pass' id='pass'> </form> However, this  
>> form no longer appears to work in Horde 5.1.6, and just puts the  
>> user at the Horde login prompt (again, from their point of view).  
>> Since users are used to logging into our webmail through our home  
>> page, it's pretty important that upgrading to the latest version of  
>> Horde be as seamless as it used to be. What do we need to do to  
>> make this work?
>
> All logins are handled through a single Horde endpoint now
> (horde/login.php).
>
> The list of URL parameters for the base page is located at the top of
> that script. Specific applications (like IMP) may require additional
> parameters -- see the application's
> [App]_Application#authLoginParams() for these values.
>
> michael
>
> ___________________________________
> Michael Slusarz [slusarz at horde.org]
>
> Okay, I've managed to get this working, and the documentation was
> somewhat helpful, but lacked some key points. I've replied to add
> clarity for future googlers.
>
> The top of the file you describe says this:
>
>  * Horde login page.
>  *
>  * URL Parameters:
>  * - app: The app to login to.
>  * - horde_logout_token: TODO
>  * - horde_user: TODO
>  * - logout_msg: Logout message.
>  * - logout_reason: Logout reason (Horde_Auth or Horde_Core_Auth_Wrapper
>  * constant).
>  * - url: The url to redirect to after auth.
>  *
>  * Copyright 1999-2013 Horde LLC (http://www.horde.org/)
>
> Missing URL parameters were:
>
> - login_button
> - horde_pass
>
>> The minimum required HTML looks like this:
>>
>> <form action="https://your-domain/horde/login.php" method="post"  
>> id="generic_form">
>> <!--//Horde-->
>> <input type="hidden" id="login_button" name="login_button" value=1>
>> Username: <input type="text" name="horde_user" id="horde_user"><br>
>> Password: <input type="password" name="horde_pass" id="horde_pass"><br>
>> <input type="submit">
>
>
>
> Links:
> ------
> [1] https://webmail.lightspeed.ca/horde/imp/redirect.php

It would be great if you could add this to the wiki.

michael


___________________________________
Michael Slusarz [slusarz at horde.org]



More information about the horde mailing list