Allow the auth store to find a user based on all attributes provided by the authentication mechanism.
Refresh is needed to immediately see the user doc change.
A method to detach after successful login and get an authentication token.
Proper indendation.
A comment to warn about the usage of the Minimal store with the key authentication mechanism.
Tests the key based authentication mechanism with the Elasticsearch store.