auth_not_configured means the service cannot check the kind of credential you sent. Read this page when every call answers with this code, and to rule out a wrong value in your Authorization header.
What happened
Routes: every protected/v1/* route.
OpenType reads the credential in Authorization: Bearer <credential> by its prefix:
This code means no verifier is configured for the credential you sent. That happens when:
- the value does not start with
otsk_, so it is treated as a console session token, and the service is not set up to check session tokens; - the service has neither of its verifiers configured, in which case every credential gets this code.
How to fix
- Check the header. It must be
Authorization: Bearer otsk_..., with the whole secret:otsk_followed by 64 lowercase hex characters. A key id (key_...), a truncated secret or a stray quote is not a key. - Check the environment variable.
echo ${OPENTYPE_API_KEY:0:5}should printotsk_. - If the credential is a valid
otsk_key, the problem is on the service side. Retry later and report therequest_idif it persists.
Example
Related
- Authentication - how to send a credential and how it is checked.
- API keys - create a key and copy its secret.
- invalid_credential - the 401 for a key that is malformed, unknown or revoked.
- Error handling - a status-to-action table and a retry helper for every error.
- Problem codes - every code, its status, and whether a retry can help.