26. maj 2009 - 14:41Der er
3 kommentarer og 1 løsning
How to specify error-page for 401?
Hello!
We have set up our jboss 4.3 with BasicAuthenticator. And we protect all of the site area with that.
So if we try to access the app we get a login-form-popup (user and password). This works fine.
But we also would like to present an certain error-page if the login fails.
So we added the following into our web.xml <error-page> <error-code>401</error-code> <location>/not_autherized.jsp</location> </error-page> ..but this resulted in that the error-page is shown right away instead of any login-form-popup.
I "guess" the logic inside jboss might work like this then:
I dette særtema ser vi på, hvordan cloud og AI bliver fundamentet for virksomhedernes digitale forretning, og hvordan de nye muligheder for automatisering og forretningsværdi kan udnyttes uden at miste overblik, sikkerhed og menneskelig kontrol.
No we do not have that possibility, beacuse in the prod-env the Basic-auth will be "overridden" by something called AccessManger so we need tu use the Basic.
I disscussed this with some people over here and all this is then in the hand of the AM-config.
Since we do not are able to use form, this is not possible!
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.