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: How to Spring Security to have the user name and password to the Web service configured? I have written a I think the problem is with your XML, did you close AutoConfig? And does your class abrupt user distribute the extension expansion?
string [] login (string username, string password);
UserDetailsService
that receives only one username.
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
Post a Comment