Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8081941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:54:33+00:00 2026-06-05T16:54:33+00:00

I am trying to customize spring security Login mechanism implemented in an existing spring

  • 0

I am trying to customize spring security Login mechanism implemented in an existing spring mvc application. this is the entry from spring security xml file

<security:form-login login-page="/login" default-target-url="/my-account" always-use-
default-target="false" authentication-failure-handler-ref="failureHandler" 
authentication-success-handler-ref="successHandler" />

this was working fine since when ever user want to login he/she was being redirected to the login page who was having a URL like

www.myapp.com/login

as per new requirement we have to impalement one global Login panel which will be there throughout the application and user can Login from there, at same time there will be some cases when user trying to access a secure area will be redirected to Login page and in that case URL can be like

www.myapp.com/login/

being new to spring security i am not sure how should i handle this use-case should i change the login-page="/login" to login-page="/*"
any pointer in this regard will really be helpful

Edit

i saw following entry in my spring-security xml file

<bean id="mainAuthEntryPoint" class="org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint"
        scope="tenant">
        <property name="loginFormUrl" value="/login" />
        <property name="forceHttps" value="true" />
        <property name="useForward" value="false" />
    </bean>

now it made me more confused as where all i need to change if any

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T16:54:35+00:00Added an answer on June 5, 2026 at 4:54 pm

    From the comments, it sounds like you want an iframe or ajax authentication method.

    This article may be a good starting point for you to look into:

    http://java.dzone.com/articles/implementing-ajax

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to customize the session management filter of Spring Security, but I get
I am trying to insert a file from a java application into a mysql
I'm trying to customize a core WP function using my functions.php file. Why won't
I'm trying to customize the Liferay Web Form portlet to accept file upload, and
I am trying to customize a view-src bookmarklet for iPad. This one is looking
I am trying to customize the authorize in mvc 3. In the home controller
I'm trying to use a delegate to customize the way data from a model
We are using various plugins in our grails application (like logging, spring security core,
im trying to customize this page indicator with half succes, but after many hours
I'm trying to customize the icons drawn by the GDirections object. I've got a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.