Access and tokens
A lost primary access token, blocked requests and which token to use where.
On this page
I lost the primary access token. How do I get back in?
1. Stop OpenLogger.
2. Open databases/memorize_data.json in a text editor. In the config section, set token to an empty value:
"token": "",3. Start OpenLogger and open /setup/. It opens without a token.
4. Set a new token right away in Configuration. See First start.
The primary access token stopped working after I filled in the OpenPlatform tokens
With Request token and Response token filled in, the admin interface accepts only Total.js OpenPlatform. Follow the steps above, and in step 2 also empty op_reqtoken and op_restoken.
Can my app use the primary access token to send logs?
- Sending a log needs an API token; the primary access token answers
401there. The other way round, an API token cannot read logs.
How do I stop a token from working?
Open the token in Tokens, change Access token to a new random value and click SUBMIT. The old value stops working at once. See API tokens.
My app gets 401 although the token is right. Why?
OpenLogger blocks an IP address for up to 15 minutes after six requests with a wrong token, even when the next requests have a valid token. Wait, or restart OpenLogger. See Errors.