[imp] Auth::authenticate() login problems

Chuck Hagenbuch chuck at horde.org
Thu Dec 14 20:11:41 PST 2006


Quoting Chris Miller <chris at integratedventures.co.uk>:

> I realise I can use the registry object to list operations available to me,
> and particularly interesting is 'horde/blockContent'
>
> I have worked out that
>
> $registry->call('horde/blockContent', *)
>
> Can provide parts of particular applications in html, this is a fantastic
> feature! I have also assumed that by trawling the API I can discover which
> block contents can be used by seeing which implementations of Horde::Block
> the application supplies.
>
> Are these the only such calls one can use (I assume yes)?

I'm not sure what the question is. horde/blocks will return a list of  
all available blocks.

> If there are parameters for this call, how does one deduce what these can
> be. In your example in the wiki
>
> $registry->call('horde/blockContent', array('kronolith', 'month',
> array('calendar' => 'jan')));
>
> The class I assume to be used here is Horde_Block_Kronolith_month defined in
> month.php

Yup.

> How is it possible to deduce the array('calendar' => 'jan') param is
> available ?

There isn't really introspection through API calls for this, but if  
you look at that file (month.php as above), you'll see a _params()  
method that returns the list of expected parameters, human names,  
type, possible values for enums, etc.

> Additionally, the login discussed above, by providing
> $authenticated = auth->authenticate('username', array('password' =>
> 'realpassword'), true);
>
> This logs into a session until a horde logout occurs ?

Yes.

> And finally, on correct login to an application

You log in to Horde, not to specific applications.

> and display of a block, on the occurrence of any interaction with  
> the block that should fire the horde portal, how do I firstly adjust  
> the links to reflect the horde url ?

I'm sorry, I don't follow this question.

> I believe being able to understand this stage should make horde very usable
> to me, and as previously suggested I can collect my experiences into a
> possibly useful document for the wiki or something

That'd be great!

-chuck

-- 
"we are plastered to the windshield of the bus that is time." - Chris


More information about the imp mailing list