restheart
restheart copied to clipboard
Cookie based authentication
Brief overview
Allow to store the auth token in a secure cookie and allow to authenticate from it.
Rationale
- Using cookie authentication and JWT token effectively enable Single Sign On.
- Usually a client first authenticate using Basic Authentication and then use the auth token returned in the first response for furthers requests. This auth token is usually stored in the local storage by web clients. The local storage is readable by JavaScript thus opening this approach to Cross-site Scripting security attacks. Storing the auth token in a secure cookie avoids XSS.
Detailed documentation
TBD