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

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -