This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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: 185
  • 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
  • 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: 185
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic