File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to supress the Spring security basic http authentication popup for non web application

 
Rithanya Laxmi
Ranch Hand
Posts: 184
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi,

I have an application which is not having GUI, I am using the Spring security basic http , which popups authentication
popup always. How to suppress the popup in spring security

<http auto-config="true" pattern="/**" authentication-manager-ref="authenticationManager">
<http:basic/>

</http>

<beans:bean id="authenticationManager" class="org.springframework.security.authentication.ProviderManager">
<beans:property name="providers">
<beans:list>
<beans:ref local="ldapAuthProvider"/>
</beans:list>
</beans:property>
</beans:bean>
// Configuration for LDAP


Thanks.
 
M Rama
Ranch Hand
Posts: 91
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you have Spring Security enabled, if you don't need it. I would remove all security settings out of it.

 
Rithanya Laxmi
Ranch Hand
Posts: 184
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. If we are not using Spring security how we can configure Spring LDAP in Spring applicationContext.xml as the ldapAuthProvider should be invoked ? Using Spring security , the ldapAuthProvider is invoked through the Spring security "authenticationManager"? Please clarify.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic