<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
/* List Definitions */
@list l0
{mso-list-id:110175107;
mso-list-type:hybrid;
mso-list-template-ids:-1018675354 -817467736 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
{mso-level-text:"%1\)";
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:20.25pt;
text-indent:-.25in;}
@list l0:level2
{mso-level-tab-stop:1.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level3
{mso-level-tab-stop:1.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level4
{mso-level-tab-stop:2.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level5
{mso-level-tab-stop:2.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level6
{mso-level-tab-stop:3.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level7
{mso-level-tab-stop:3.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level8
{mso-level-tab-stop:4.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level9
{mso-level-tab-stop:4.5in;
mso-level-number-position:left;
text-indent:-.25in;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>All,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I have been trying to replicate a working pattern for
authentication in Grok 1.1 and I have hit a wall. <o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Everything seems to work as expected but for two things:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoListParagraph style='margin-left:20.25pt;text-indent:-.25in;
mso-list:l0 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>1)<span
style='font:7.0pt "Times New Roman"'> </span></span><![endif]>I
can’t seem to get the app to redirect to the login page, (which I can type
myself to)<o:p></o:p></p>
<p class=MsoListParagraph style='margin-left:20.25pt;text-indent:-.25in;
mso-list:l0 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>2)<span
style='font:7.0pt "Times New Roman"'> </span></span><![endif]>Once
I type myself to the login page and enter credentials, it flows through fine,
redirects to the index page and drops this exception:<o:p></o:p></p>
<p class=MsoNormal style='margin-left:20.25pt'><o:p> </o:p></p>
<p class=MsoNormal style='margin-left:20.25pt'>2010-04-06 14:01:51,729 ERROR
[SiteError] <a href="http://portal-dev.craryindustries.com/@@index">http://portal-dev.craryindustries.com/@@index</a><o:p></o:p></p>
<p class=MsoNormal style='margin-left:20.25pt'>Traceback (most recent call
last):<o:p></o:p></p>
<p class=MsoNormal style='margin-left:20.25pt'> File
"/home/zope/.buildout/eggs/zope.publisher-3.12.0-py2.5.egg/zope/publisher/publish.py",
line 131, in publish<o:p></o:p></p>
<p class=MsoNormal style='margin-left:20.25pt'> obj =
request.traverse(obj)<o:p></o:p></p>
<p class=MsoNormal style='margin-left:20.25pt'> File
"/home/zope/.buildout/eggs/zope.publisher-3.12.0-py2.5.egg/zope/publisher/browser.py",
line 556, in traverse<o:p></o:p></p>
<p class=MsoNormal style='margin-left:20.25pt'> ob, add_steps
= publication.getDefaultTraversal(self, ob)<o:p></o:p></p>
<p class=MsoNormal style='margin-left:20.25pt'> File
"/home/zope/.buildout/eggs/grok-1.1rc1-py2.5.egg/grok/publication.py",
line 103, in getDefaultTraversal<o:p></o:p></p>
<p class=MsoNormal style='margin-left:20.25pt'> request, ob)<o:p></o:p></p>
<p class=MsoNormal style='margin-left:20.25pt'> File
"/home/zope/.buildout/eggs/zope.app.publication-3.10.2-py2.5.egg/zope/app/publication/browser.py",
line 36, in getDefaultTraversal<o:p></o:p></p>
<p class=MsoNormal style='margin-left:20.25pt'> return
ob.browserDefault(request)<o:p></o:p></p>
<p class=MsoNormal style='margin-left:20.25pt'> File
"/home/zope/.buildout/eggs/zope.securitypolicy-3.6.1-py2.5.egg/zope/securitypolicy/zopepolicy.py",
line 277, in checkPermission<o:p></o:p></p>
<p class=MsoNormal style='margin-left:20.25pt'> object,
principal.id, self._groupsFor(principal), permission,<o:p></o:p></p>
<p class=MsoNormal style='margin-left:20.25pt'> File
"/home/zope/.buildout/eggs/zope.securitypolicy-3.6.1-py2.5.egg/zope/securitypolicy/zopepolicy.py",
line 314, in _groupsFor<o:p></o:p></p>
<p class=MsoNormal style='margin-left:20.25pt'> groups =
self._findGroupsFor(principal, getPrincipal, [])<o:p></o:p></p>
<p class=MsoNormal style='margin-left:20.25pt'> File
"/home/zope/.buildout/eggs/zope.securitypolicy-3.6.1-py2.5.egg/zope/securitypolicy/zopepolicy.py",
line 295, in _findGroupsFor<o:p></o:p></p>
<p class=MsoNormal style='margin-left:20.25pt'> group =
getPrincipal(group_id)<o:p></o:p></p>
<p class=MsoNormal style='margin-left:20.25pt'> File
"/home/zope/.buildout/eggs/zope.pluggableauth-1.0.1-py2.5.egg/zope/pluggableauth/authentication.py",
line 89, in getPrincipal<o:p></o:p></p>
<p class=MsoNormal style='margin-left:20.25pt'> principal =
interfaces.IFoundPrincipalFactory(info)(self)<o:p></o:p></p>
<p class=MsoNormal style='margin-left:20.25pt'>TypeError: ('Could not adapt',
PrincipalInfo('83864CA7855EE435E040007F01002753'), <InterfaceClass
zope.pluggableauth.interfaces.IFoundPrincipalFactory>)<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>The Authenticator Plugin is supposed to return an
implementation of IPrincipalInfo which
PrincipalInfo('83864CA7855EE435E040007F01002753') is and I am not sure why
it’s having this issue.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Any insight would be appreciated. BTW…this worked with
Grok 1.0 and all the zope.app dependencies.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>TIA,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Jeff Peterson<o:p></o:p></p>
<p class=MsoNormal>Webmaster<o:p></o:p></p>
<p class=MsoNormal>Crary Industries, Inc.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>