Closed mnesarco closed 7 years ago
Hi, can you share your login page or a sample project?
Also you are probably getting a 403 response after logon, thats the only way to be redirected to 403 page, see here: https://github.com/adminfaces/admin-template/blob/master/src/main/resources/META-INF/web-fragment.xml#L12
Hi @rmpestano , I am pretty sure the 403 response is generated before I am redirected to the login form, so after login successfully, I am redirected to 403.xhtml. Unfortunately I am in a hurry to finish the current project, so my working workaround was to remove the AdminSession specialization and rely only on JAAS which works out of the box. I will try to do something as soon as I have some spare time to clarify this case.
I see, it's been long time since I've worked with JAAS but if you point me to a simple maven example I can try to debug AdminFilter , I'm quite sure the filter is redirecting you to login or index before you have authenticated in JAAS.
Hi @rmpestano , I will try to provide a sample project as soon as i have some time. in the mean time the case is this:
Hi @mnesarco,
can you try with following SNAPSHOT?
<dependency>
<groupId>com.github.adminfaces</groupId>
<artifactId>admin-template</artifactId>
<version>1.0.0-20170929.011951-82</version>
</dependency>
Don't forget to add snapshots repository in your pom.xml.
Hi @rmpestano Thanks for your time. I have already deployed my App with only JAAS, but I will try your changes in the next Sprint (next two weeks). Thank you.
Issue Overview
I have configured a realm and a security constraint in web.xml, in conjunction with AdminSession specialization bean. But the template saves the 403.xhml page as redirect url after login.
Current Behaviour
after login, redirects to 403.xhtml if the requested url is protected under a security-constraint
Expected Behaviour
after login, must redirect to the correct requested url.
How to reproduce
A sample xhtml code may help, ex:
web.xml
LoginManager
Additional Information