tg2docs icon indicating copy to clipboard operation
tg2docs copied to clipboard

Document how to test protected areas with repoze.who-testutil

Open pedersen opened this issue 13 years ago • 3 comments

This issue existed in Trac. The original can be viewed at http://trac.turbogears.org/ticket/2261

This issue existed on SourceForge. The original can be viewed at https://sourceforge.net/p/turbogears2/tickets/3

pedersen avatar Sep 24 '12 01:09 pedersen

Original Author: pedersen, Original Timestamp: 2011-03-10 02:31:42.392000

Original Body: I have to explain how to test protected areas and authentication separately, using repoze.who-testutil.

pedersen avatar Sep 24 '12 01:09 pedersen

Original Author: pedersen, Original Timestamp: 2012-08-24 01:32:59.714000

Original Body: - version: 2.1.0 --> 2.1.5

  • milestone: 2.2.0 --> 2.3.0

pedersen avatar Sep 24 '12 01:09 pedersen

I'm on 2.1.5 and as far as I can tell, even though repoze.who-testutil is installed, it doesn't work (e.g. the {'REMOTE_USER': 'username'} in the extra_environ doesn't authenticate - I get a 401). Is there some configuration that needs to be done to make the testutil plugin actually work? I can't find anything in its documentation or repoze.who's documentation (the normal [plugin:testutil] use = repoze.who.plugins.testutil:[anything in that file] doesn't work.)

shakefu avatar Nov 16 '12 23:11 shakefu