[Product-Developers] Testing as an OpenId User

Jan Hackel plonecode at hackel.name
Sun Jul 12 18:18:00 UTC 2009


On Saturday July 11 2009 Wichert Akkerman wrote:
> On 7/11/09 10:33 PM, Jan Hackel wrote:
> > I need to write a (browser) test where the current user is authenticated
> > via OpenID. I am  faced with various problems.
> >
> > First of all I cannot get plone.app.openid to install, because it fails
> > to install plone.openid. I guess plone.openid needs to be registered as a
> > product somehow.
> >
> > Then there is the question of how to login. I suppose, using the
> > testbrowser to fill the login form won't work, or am I wrong? The login
> > should of course work offline and without an actual valid openid login.

> That pretty much means you can't use OpenID.
Is that regarding to the first or the latter problem? There ought to be a way 
to register non-product-namespace package in a test, no? So far, I only found 
the way via ZCML five:registerPackage, but no via API.

> There is nothing special about OpenID users in Plone though - they are
> normal users, just like every other user.
Something must be different. I need to find out what. In a test.

Grüße
Jan Hackel





More information about the Product-Developers mailing list