Questions tagged [j-security-check]

j_security_check is a default URL in web applications using JAAS, the Java Authentication and Authorization Service, and Spring Security. It is used to implement security.

j_seucrity_check is the action that needs to be set on a html form when using Java Servlet Form Authentication (container security).

See the Java Tutorial for more information.

163 questions
0
votes
1 answer

Calling secured drill URL from nodeJS using request

I have NodeJS service which is protected and exposed using a load balancer. Need to call the drill Query.JSON API which is projected using j_secuirty_check. Existing logic: First hit the j_security_check URL with the credentials and receive the…
0
votes
1 answer

Log in (form-based) from JSF page

Using JSF 1.2 and RichFaces 3.3.1 on JBoss 4.2.3. I've just started on a JSF Application. It uses XHTML files for most of its content, and a login.jsp with form-based authentication for logging in, something I understand is common in JSF…
Greg Charles
  • 1,880
  • 4
  • 20
  • 39
0
votes
0 answers

Server form-based authentication can't performed by running index.jsp but servlet

While run index.jsp then it must check by method POST of servlet and task must be go further. But while I'm trying, it doesn't do what it should be. Executing servlet can perform this task, but if execute index.jsp it shown error.jsp as entered…
user3787990
0
votes
0 answers

jetty: use j_security_check as url returns 500 error

I use jetty FormAuthenticator to validate the login data like this FormAuthenticator authenticator = new FormAuthenticator("login", "login", false); In the login form, I have
The problem…
CMZS
  • 601
  • 6
  • 21
0
votes
0 answers

Invalid direct reference to form login page while going to scrape a page using PHP cURL

I am doing scraping of page using PHP cURL. I have to login to the website by passing credentials to login form action. Here is the cases I'm getting.: Case #1: When accessing page using browser, this is the form which is being submitted to the…
Ahmad Asjad
  • 825
  • 1
  • 8
  • 29
0
votes
1 answer

How to redirect 2 different pages after j_security_check

I have a login page using j_security_check and I need to redirect to different pages depending on the user's privileges. For example, user A has to be redirected to page1 and user B to page2. How can I do this using j_security_check?
ErVeY
  • 1,524
  • 4
  • 16
  • 26
0
votes
1 answer

Authenticating a user with j_security_check in Java EE 7

I practise Java EE 7 nowadays. I come across a problem when trying to authenticate a user by using container provided way, i.e., j_security_check . Application server: Apache Tomcat 7 Project/Application name: ServletDrill Resource (Servlet)…
ucas
  • 417
  • 1
  • 11
  • 30
0
votes
2 answers

Endless loop when logging in with Servlet Filter and j_security_check

I have implemented a servletFilter and declared it in my web.xml but the issue is I cant login now. The user submits their username and password and the code redirects to a j_security_check page and then reloads logon.html again endlessly. In the…
John Park
  • 290
  • 2
  • 8
  • 25
0
votes
1 answer

Page redirect fails with partial-response message on AJAX calls

I am a bit desperate about the following problem. In JSF/PrimeFaces (Wildfly 10) we are using both AJAX and non-AJAX calls. If a session expires and someone interacts with the system (clicks), it should be redirected to login.xhtml and ask a user…
TomS
  • 1,159
  • 2
  • 17
  • 35
0
votes
1 answer

What's the benefit of using j_security_check over self-coded login module?

j_security_check makes it easy to load users from a ldap server. It saves me a USER table. It's like user-management task is separated from the system. But the problem is, in a production system with sophisticated requirements, a lot of data is…
Qing Song
  • 517
  • 1
  • 3
  • 12
0
votes
1 answer

j_security_check not working when

I use j_security_check as part of JAAS mechanism on a tomcat/tomEE server. I currently have a context called "admin", that has the login process as a separate page (login.html), and that login page has a form similar to this:
Or A.
  • 1,220
  • 1
  • 15
  • 28
0
votes
0 answers

j_security_check not found error coming when tring to login again

Using form-based authentication with j_security_check. The first logon works. User presses back button. The second logon fails. The browser URL after the second logon fails is http://(mydomain/j_security_check. "404 Not Found" is the error…
apm
  • 525
  • 6
  • 19
0
votes
1 answer

j_security_check not redirecting to angular with # hash key

I have a jboss web application with form-based authentication and Angular based client. Scenario: I go to http://localhost:8082/my-app/#/dashboard, with session timed out It redirects to login page (login.jsp). I enter the username and password,…
MoneerOmar
  • 205
  • 2
  • 4
  • 18
0
votes
1 answer

JSF2 Form Authentication with database users

I'm currently using JSF 2 and icefaces framework for JavaScript. I'm having some problems with j_security_check based on the url(that's not the point), that my taste is very strict my question is: Is there any better way of authentication, or some…
ErVeY
  • 1,524
  • 4
  • 16
  • 26
0
votes
3 answers

How to redirect to url after j_security_check login

I use j_security_check to authenticate my Java EE web app. I have 2 groups; user and admin. Both of these groups have a own folder in the weg pages; user has "/secure", admin has "/admin". After a person is authenticated with j_security_check I…
Wesley Egbertsen
  • 720
  • 1
  • 8
  • 25