Authenticate by IP

I have a user who uses hardware that does not pass username or password
I would like to create an extension for this user

this extension will authenticate this user solely by his ip address

please advice

thanks