aspose file tools*
The moose likes Spring and the fly likes How to supress the Spring security basic http authentication popup for non web application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "How to supress the Spring security basic http authentication popup for non web application" Watch "How to supress the Spring security basic http authentication popup for non web application" New topic
Author

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

Rithanya Laxmi
Ranch Hand

Joined: Jan 24, 2011
Posts: 136

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

Joined: Mar 04, 2005
Posts: 91
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

Joined: Jan 24, 2011
Posts: 136
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.
 
Don't get me started about those stupid light bulbs.
 
subject: How to supress the Spring security basic http authentication popup for non web application