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
1
vote
2 answers

j_security_check with ajax

EDIT: url is culprit I think. In working login.html case I got in log: FINE: Security checking request POST /SesamaMaven/protected/admin/j_security_check And in AJAX-version I got: FINE: Security checking request POST /SesamaMaven/ I configured…
Sami
  • 2,311
  • 13
  • 46
  • 80
1
vote
1 answer

Unexpected error forwarding or redirecting to login page

I have a JSF app running on GlassFish 3.1.2.2 with Mojarra 2.1.21 and OmniFaces 1.4.1 to handle Ajax errors. The app has both protected and public areas, using form-based-authentication (on a JSF form) with programmatic login. I'd always get a blank…
1
vote
3 answers

Worklight form based authentication: j_security_check not found

I've tried to implement a very simple, form based authentication with a Worklight app. However when I activate the login function, it stops with a 404 error, saying /apps/services/j_security_check can not be found. Oddly enough, when I run the form…
René
  • 513
  • 3
  • 16
1
vote
1 answer

Security double check

I'm using container based security in my jsf application (j_security) using glassfish to authenticate users for secured pages. However, within the application, I have more restricted pages that requires to re-enter passwords even when the user is…
fareed
  • 3,034
  • 6
  • 37
  • 65
1
vote
1 answer

Tomcat behind Apache: Using SSL with j_security_check

I have a little problem with using SSL on a Tomcat that is behind Apache. I have used Google all morning to try to find a good solution, but nothing so far. As a part of my SSL VirtualHost configuration I have ProxyPass…
niklassaers
  • 8,480
  • 20
  • 99
  • 146
1
vote
1 answer

Auto login with j_security_check

I am new to j_security_check tomcat. However i implemented login functionality(form based authentication) using login filter & some settings in web.xml. When we trying to access a secured page, tomcat redirects to login page. After providing…
Srikanth
  • 534
  • 1
  • 7
  • 20
1
vote
2 answers

j_security check always redirects me to the authentication failed error page

This is my first attempt at using j_security check form authentication in a java web app. I am using Eclipse 3.6 and Apache Tomcat 6.0.28. Problem description: When I submit the login form with valid credentials, j_security check redirects me to…
Ade
  • 11
  • 1
  • 3
1
vote
2 answers

How to make weblogic form authentication in wicket

I want make weblogic form validation in wicket but I dont know how to create login page. I followed this tutorial where is example in jsp: http://docs.oracle.com/cd/E13222_01/wls/docs100/security/thin_client.html#wp1057581 I create similar form in…
hudi
  • 15,555
  • 47
  • 142
  • 246
1
vote
1 answer

j_security_check not redirecting to welcome page - successful login event listener?

For ages I've been puzzled about why after login I sometimes don't directed to the application welcome page. I've finally figured it out (years after everyone else): I login successfully via j_security_check and go to the welcome page wait for…
Oversteer
  • 1,778
  • 1
  • 22
  • 38
0
votes
1 answer

determine target url based on roles for struts2

I am new to struts and spring security. Can anyone help me to figure out how to redirect to different urls different users with different roles ? In other words, how to provide determine target url based on user role in struts2 using action…
0
votes
1 answer

How to pass other data with j_security_check?

I use IBM Websphere Application Server 6.1 and my login screen have controls as:
User Name: [ Admin ] <<-- j_username Password: [ ******* ] <<-- j_password …
Fuangwith S.
  • 5,654
  • 8
  • 37
  • 41
0
votes
1 answer

Passing additional parameters to j_security_check

In our application we need to let user select the desired datasource when logging in with form-based authentication, and I'm not sure if it's at all possible when using standard form-based authentication. I heard it was possible using…
Sergey
  • 2,880
  • 3
  • 19
  • 29
0
votes
0 answers

How does j_security_check work? How do we customize the login API call?

I just started learning about using j_security_check and it seems pretty straightforward but what I can’t seem to understand is how the action knows what api call to handle the login process. Say I have an api set up and I want j_security_check to…
Aria
  • 389
  • 3
  • 7
  • 25
0
votes
0 answers

Set-Cookie header is missing in postman, but working fine in browser's network response?

I'm using library okHttpClient for form-based authentication(Content-type: application/x-www-form-urlencoded), j_security_check. when I login in application I'm getting the Set-Cookie value jsessionId in network response header. however, when the…