java - Authenticate users with SpringSecurity using a WebService that requires a username and password -


Currently I'm writing a web application using Spring Security. We have a web service that authenticates users with a username and password.

Web service:
string [] login (string username, string password);

How to Spring Security to have the user name and password to the Web service configured?

I have written a UserDetailsService that receives only one username.


I think the problem is with your XML, did you close AutoConfig? And does your class abrupt user distribute the extension expansion?

Expand org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider

  / ** * @author rodrigoap * * / public class extends WebServiceUserDetailsAuthenticationProvider AbstractUserDetailsAuthenticationProvider recover {@Override protect UserDetails user (string username, username AuthenticationToken certification) throws AuthenticationException {// improve this line: string password = authentication .getCredentials () .tar (); // Enter your website hereHow much [] given ATH = loginWebService.login (username, password); // Make Usageital Warning: User dislikes! UserDetails userDetails = New User (Username, Password, Approved Ath); Return user; description; }}  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -