hapijs / cookie

Cookie authentication plugin
Other
229 stars 100 forks source link

auto-login #160

Closed bounis closed 5 years ago

bounis commented 7 years ago

I need to authenticate without passing by login form by sending login and password in the URL like this: http://login:password@kibanaIp:5601. is there any way to do that. thnx.

Marsup commented 7 years ago

This is basic auth and you don't need cookies for that. See https://www.npmjs.com/package/hapi-auth-basic.

bounis commented 7 years ago

thank you for your response but i can't use basic auth with custom login form so i was wondering if i can use basic auth and hapi auth aookie at the same time, means if i did not pass credentials in the url then the server reply redirect to the login form. thanks.

wallacepeng commented 7 years ago

hapi auth cookie does not support http basic auth header. In that case, you'd have to customize it.

lock[bot] commented 4 years ago

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.