Mantis - Resin
Viewing Issue Advanced Details
5235 minor always 10-08-12 10:34 09-08-14 17:40
alex  
ferg  
normal  
closed 4.0.32  
no change required  
none    
none  
0005235: /resin-admin authenticator chain does not work
  <resin:LoginList>
    <resin:FormLogin login-page="/login.php"
                     error-page="/error.php"
                     authenticator="#{resinAdmin}"/>
    <resin:BasicLogin authenticator="#{resinAdmin}"/>

  </resin:LoginList>
Issuing curl -u admin:admin http://localhost:8080/resin-admin/rest.php?q=check_thread_pool [^]
returns
<html>
<head><title>403 Forbidden</title></head>
<body>
<h1>403 Forbidden</h1>

<hr />
<small>
Resin/4.0.30
Server: 'app-0'
</small>
</body></html>

workaround: move BasicLogin to the first position

  <resin:LoginList>
    <resin:BasicLogin authenticator="#{resinAdmin}"/>

    <resin:FormLogin login-page="/login.php"
                     error-page="/error.php"
                     authenticator="#{resinAdmin}"/>

  </resin:LoginList>


There are no notes attached to this issue.