sim51 / logisima-play-cas

CAS authentification module (SSO)
http://www.bsimard.com
19 stars 8 forks source link

No fail template #3

Closed sdenef closed 13 years ago

sdenef commented 13 years ago

Hi,

I found this on my app logs :

Internal Server Error (500) Template not found (In {module:cas-2.0-adeo}/app/controllers/modules/cas/SecureCAS.java around line 78) The template modules/cas/SecureCAS/fail.html does not exist.

play.exceptions.TemplateNotFoundException: Template not found : modules/cas/SecureCAS/fail.html at play.mvc.Controller.renderTemplate(Controller.java:595) at play.mvc.Controller.renderTemplate(Controller.java:568) at play.mvc.Controller.render(Controller.java:623)

at controllers.modules.cas.SecureCAS.fail(SecureCAS.java:78)

I don't know how this occured. Do I create a fail.html template ? Or is it missing in the module ?

Thanks

sim51 commented 13 years ago

Yes it's an error.

When the user authentification failed, I call the fail fonction that do a simple "render()". In fact, I have to change this by "forbidden()", that produce a 403.

After, you have to create a 403 error page in your application if you want.

Sincerely.

sim51 commented 13 years ago

It's done on github ! I put a new release on playframework site today.

Sincerely