Comments (7)
Hi, can you share your login page or a sample project?
from admin-template.
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
from admin-template.
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.
from admin-template.
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.
from admin-template.
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:
- Unauthenticated user tries to acces a JAAS protected page
- The container throws the security exception
- AdminTemplate catchs and redirects to 403.xhtml, but because the AdminSession.isLoggedIn return false, AdminFiltes saves the current url (403.xhtml) to be used as redirect after login and redirects the user to the login page.
- The user successfully authenticates itself, then the AdminTemplate redirects the user to the previously saved URL(403.xhtml)
** The user is effectively authenticated because it can now access the protected page directly. The problem is just with the redirection after login.
from admin-template.
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.
from admin-template.
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.
from admin-template.
Related Issues (20)
- Disable loading bar per page
- Admin properties labels HOT 2
- na
- Upgrade to PrimeFaces 10
- ADMIN LTE 3 support
- Migrate CI/CD to github actions
- Error FileUpload HOT 4
- syncax error in filea admintemplate.js HOT 1
- Provide a Jakarta EE 9 version HOT 8
- Error while loading breadcrumb HOT 1
- Updates bootstrapt to 3.4.1
- Web session cluster is not working HOT 2
- Support javax package
- Failure to compile against admin-template 1.5.1 HOT 3
- Update to Java 11 HOT 1
- Adminfaces 1.6.0 is not Jakarta EE 9 Compatible HOT 8
- Automate the release of javax & jakarta artifacts HOT 1
- Consider different branch for "jakarta" and "javax" releases HOT 1
- Drop javax support
- error with mvn compile
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from admin-template.