How to use Hidden Service Authentication?
According to the manual, there are two configuration options (i.e. things you put in your torrc):
HidServAuthis what can be used on the client. It allows you to provide authentication cookies for hidden services as in
HidServAuth <onion-address> <auth-cookie>.
HiddenServiceAuthorizeClientis the server side companion.
Protocol-related information can be found in the rendezvous-specification at section 2.