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

Popular posts from this blog

ruby on rails - Devise Logout Error in RoR -

model view controller - MVC Rails Planning -

php - Working with pretty urls on apache and fastcgi after hhvm installation -