You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to use cookies for authenticating instead of having a plain header so that it is sent automatically with each request. This would be made easier with a request like this:
At the moment there is no easy way to customize this.
Expected Behavior
To be able to use cookies to authenticate to be able to simplify the client-side authentication logic. Making this a config option would make the framework more flexible.
Additional Context
I am currently working with Loco and HTMX, therefore I render simple pages and I would like to use the built-in authentication methods without client-side JS.
The text was updated successfully, but these errors were encountered:
Muxoid
changed the title
Configurable AUTH_HEADER Variable.
Configurable Auth Token Location.
May 11, 2024
Description
I would like to be able to use cookies for authenticating instead of having a plain header so that it is sent automatically with each request. This would be made easier with a request like this:
curl --location --request GET '127.0.0.1:3000/api/user/current'
--header 'Content-Type: application/json'
--Cookie 'Authorization=Bearer TOKEN'
instead of the current:
curl --location --request GET '127.0.0.1:3000/api/user/current'
--header 'Content-Type: application/json'
--header 'Authorization: Bearer TOKEN'
At the moment there is no easy way to customize this.
Expected Behavior
To be able to use cookies to authenticate to be able to simplify the client-side authentication logic. Making this a config option would make the framework more flexible.
Additional Context
I am currently working with Loco and HTMX, therefore I render simple pages and I would like to use the built-in authentication methods without client-side JS.
The text was updated successfully, but these errors were encountered: