hapijs/cookie

auto-login

Closed this issue · 4 comments

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.

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

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.

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

lock commented

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.