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
4
votes
4 answers

How to programmatically login to j_security_check

I have a JSP web application which uses j_security_check. Is it possible to login a specific user to j_security_check programmatically via a JSP page if I know the userid and password? I tried to pass the variables as URL parameters this…
Ozgur Dogus
  • 911
  • 3
  • 14
  • 38
4
votes
5 answers

j_security_check and JAAS

I have been given the task of implementing a login handler. The only detail the handler captures is username and password. Initially I was going to use a JSP that posted to a servlet. Where the servlet carried out a db lookup and also validated…
Deano
  • 1,740
  • 4
  • 20
  • 24
4
votes
1 answer

j_security_check is not available if user is already logged in

Apache tomcat version: 6.0.20 If user is already logged, and he tries to login again from login page, the j_security_check is not available error is encountered. Is it normal behaviour or I have to do something? Actually I have different user roles…
jem
  • 257
  • 4
  • 14
3
votes
2 answers

using md5 and salt with j security check

Right now I am using j security check and md5 to authenticate my jsp pages. I would like to salt the password before I store it into the database. Due to restricted access at school, I do not have rights to create a trigger to inject some salt. Is…
segFault
  • 1,228
  • 2
  • 18
  • 41
3
votes
1 answer

Why is Realm setting required in Server.xml and not web.xml

I am working on a Java application for a while. I primarily work on .NET Platform. Although I feel lot of concepts are common between these two platforms but there are few areas where I am finding some issues related to the configuration. I am…
Kunal
  • 1,913
  • 6
  • 29
  • 45
3
votes
1 answer

How to handle Form-Based Authentication login (j_security_check) after session-timeout

a question regarding the handling of login to a web/application server (WildFly 9.0.2) after a session-timeout. Scenario: I have a simple Web Application with a login page using Form-Based Authentication (action: j_security_check) and container…
Farisola
  • 41
  • 3
3
votes
4 answers

How do I programmatically call authenticate from within a servlet like j_security_check would do

We have the web based form login authentication with j_securtiy_check working. We'd like to change it by programmatic login authentication. What is the proper way of having a servlet authenticate a user name and password passed to it? The servlet is…
3
votes
1 answer

How to get the username of j_security_check as bean property

In my managed bean, I wish to fetch the j_security_check username, which auths to a LDAP server, as a bean property. Essentially, I want to pull the username from once it is submited and all authed and use it…
user1924104
  • 891
  • 2
  • 16
  • 38
2
votes
1 answer

Programmatically using j_security_check

I have page like localhost:7001/MyServlet. I am making a http connection request from like below String url = "http://localhost:7001/MyServlet" PostMethod method = new PostMethod(url); HttpClient client = new HttpClient(); However "MyServlet" is…
Jijoy
  • 12,386
  • 14
  • 41
  • 48
2
votes
1 answer

How can I simulate form authentication in Tomcat using JMeter?

I'm very new to JMeter, but I have some ideas of what JMeter could be used for. Also I have a Tomcat application with form authentication enabled. The thread I'm trying to use consists of: HTTP Request Defaults HTTP Cookie Manager HTTP Header…
Lyubomyr Shaydariv
  • 20,327
  • 12
  • 64
  • 105
2
votes
1 answer

How to authenticate users on a React.JS app using j_security_check

I am working on an application that uses ReactJS. I will be running the application on a TomCat server and deploying using Maven. For past applications I have used j_security_check to authenticate users and would like to authenticate users in the…
Bryan Bailey
  • 29
  • 1
  • 5
2
votes
0 answers

j_security_check form authentication with angular 4 application

We have a J2EE based application running on wildfly 8.1. We need to configure form authentication in web.xml for UI which is written in angular4. We have a angular4 app with LoginComponent which accepts j_username and j_password. How to map angular…
Anuradha K
  • 21
  • 4
2
votes
2 answers

Strange 404/j_security_check error with Websphere 6.1

I have a websphere 6.1 configuration and the application is running, but some requests go to j_security_check but the last one (there are filters associated with J_security_check) will generate a 404 error. For example: (1) User posts…
Berlin Brown
  • 11,504
  • 37
  • 135
  • 203
2
votes
1 answer

J_security_check session not ending

I am a beginner trying to learn jsp, by creating a login page with the help of j_security_check. In the following code from web.xml, you can see that everything in protected folder needs you to login to access it.
David Liao
  • 653
  • 8
  • 18
2
votes
0 answers

Wildfly - Problems with form based authentication after restart

We have what I believe to be a pretty standard form based authentication for a web application running on wildfly 8.2. The authentication works well, except that when we stop&start the server some users are unable to log in again. I have managed to…
Guttorm
  • 21
  • 4
1
2
3
10 11