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 8596585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:42:51+00:00 2026-06-12T00:42:51+00:00

I have this security config that when a resource is accessed in my application

  • 0

I have this security config that when a “resource” is accessed in my application Controller returns a Spring Login form:

<http auto-config="true" create-session="stateless" use-expressions="true">
     <intercept-url pattern="/admin/*" access="hasRole('ROLE_ADMIN')"/>
     <intercept-url pattern="/admin*" access="hasRole('ROLE_ADMIN')"/>
</http>

However, what I need is to return a JSON response and not a login from. When I try to set auto-config="false" I get this error:

No AuthenticationEntryPoint could be established. 

What config do I need to set in my application so it will provide a JSON response instead of a login form.

  • 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-12T00:42:52+00:00Added an answer on June 12, 2026 at 12:42 am

    Try this for default-target-url=”/url” specify on the controller @ResponseBody.

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

Sidebar

Related Questions

I currently have a web application that is utilizing Spring Security hosted on a
I'm using Spring to handle security in my JSF application. I have a login
I have this config in my components.xml: <web:authentication-filter url-pattern=/resource/rest/* auth-type=basic/> <security:identity authenticate-method=#{basicAuthenticator.login}/> Well, my
I have this setup that works perfectly when using http. A silverlight 3 client
I have a j2ee web application using spring web flow ang spring security. I
I am using Spring Security 3.0 with JSPs. I have created a RequireVerificationFilter that
I have a clean GWT application which I want to secure with Spring Security.
I have implemented this example into my application: https-clientserver-grizzly Here is Server.java from that
I asked this question over Security site, and people there suggested I should have
Maybe this isn't possible due to Security implications... I have a Deployment Package created

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.