The devise plugin allows to use authentication tokens. The documentation says about the "Token Authenticatable" option: signs in a user based on an authentication token (also known as "single access token"). The token can be given both through query string or HTTP Basic Authentication.
The query string method is clear, but how exactly do you pass the token through Basic Authentication? Is it necessary to use Base64 encoding, like this:
echo "auth_token:3a75Dvc" | base64
=> YXV0aF90b2tlbjozYTc1RHZjCg==
curl --header "Authorization: Basic YXV0aF90b2tlbjozYTc1RHZjCg==" \
http://my_site.com/my_app