Giter VIP home page Giter VIP logo

Comments (7)

rmpestano avatar rmpestano commented on May 30, 2024

Hi, can you share your login page or a sample project?

from admin-template.

rmpestano avatar rmpestano commented on May 30, 2024

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.

mnesarco avatar mnesarco commented on May 30, 2024

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.

rmpestano avatar rmpestano commented on May 30, 2024

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.

mnesarco avatar mnesarco commented on May 30, 2024

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:

  1. Unauthenticated user tries to acces a JAAS protected page
  2. The container throws the security exception
  3. 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.
  4. 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.

rmpestano avatar rmpestano commented on May 30, 2024

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.

mnesarco avatar mnesarco commented on May 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.