java - access domain name from UserDetailsService -
java - access domain name from UserDetailsService -
in spring, need additional verification in custom myuserdetailsservice when user login in, , need domain name user login from. thought ?
here worked out me how session object in spring?
yon can inject (@autowired) httpservletrequest myuserdetailsservice similar code below, believe getremotehost() looking for?
@restcontroller public class webonecontroller { @autowired private httpservletrequest request; @requestmapping("/") public string hello() { homecoming "host " + request.getremotehost(); } }
java spring login spring-security
Comments
Post a Comment