Nginx basic authentication, login from command line -


as know browser login user nginx basic authentication server -h 'authorization: basic username:password' header.

but in case of application, client uses command lines calling rest api, can't modify. there no way me inject user credential in header. question how nginx server configured remember user, , allow user log out without credential sent in every request?

for example, user types commands terminal:

login myhost.com -u myname:mypassword   

then user authorized access sever, he/she can retrieve information provided apis.

logout myhost.com 

then user logs out.


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -