bmuller / mod_auth_openid

mod_auth_openid is an authentication module for the Apache 2 webserver. It handles the functions of an OpenID consumer as specified in the OpenID 2.0 specification.
http://findingscience.com/mod_auth_openid
Other
74 stars 27 forks source link

Error in authentication: openid.modauthopenid.nonce: no such field #43

Open sentience opened 11 years ago

sentience commented 11 years ago

With mod_auth_openid 0.6 (installed with Chef) configured as follows to protect a subdirectory of my site…

<Location /admin>
    AuthType OpenID
    require user <%= @node[:apache][:allowed_openids].join(' ') %>
    AuthOpenIDDBLocation <%= @node[:apache][:mod_auth_openid][:dblocation] %>
</Location>

…every authentication attempt fails with “There has been an error while attempting to authenticate.”. This is what appears in the Apache error log:

[Thu Dec 06 05:09:12 2012] [error] [client 10.176.94.172] Error in authentication: openid.modauthopenid.nonce: no such field

What am I doing wrong?

sentience commented 11 years ago

Note: deleting my mod_auth_openid.db file and restarting Apache has no effect.

doctorregtools commented 11 years ago

I too get this problem - here's my configuration

AuthType OpenID require valid-user AuthOpenIDLoginPage /login.html AuthOpenIDAXRequire email http://axschema.org/contact/email @mydomain.com$ AuthOpenIDAXUsername email

Interestingly though, the same configuration seems to work when I go straight to the server but not when it sits behind a load balancer.

Did you manage to resolve the problem?

Thank you