Skip to content

Configuration

Every key has an environment variable and a default, so most applications never publish the file. When you need to:

bash
php artisan vendor:publish --tag=autentique-config

That writes config/autentique.php into the application.

The keys

KeyEnvironmentDefault
tokenAUTENTIQUE_TOKENnonethe API token, sent as a Bearer token
urlAUTENTIQUE_URLhttps://api.autentique.com.br/v2/graphqlthe GraphQL endpoint
sandboxAUTENTIQUE_SANDBOXfalsewhether documents are created as sandbox documents when a call does not say
corporate_urlAUTENTIQUE_CORPORATE_URLhttps://api.autentique.com.br/v2/graphql/corporatethe Corporate endpoint; see Corporate
timeoutAUTENTIQUE_TIMEOUT30seconds to wait for a response
retry.timesAUTENTIQUE_RETRY_TIMES2retries of a request Autentique refused with HTTP 429; 0 turns retrying off
webhooks.secretAUTENTIQUE_WEBHOOK_SECRETnonethe endpoint's secret, from the dashboard; see webhooks
webhooks.pathAUTENTIQUE_WEBHOOK_PATHnonewhere the package listens; none registers no route
webhooks.middleware[]middleware for that route besides the signature check; never web
webhooks.deduplicateAUTENTIQUE_WEBHOOK_DEDUPLICATEnoneseconds to remember each event id and drop a repeat
webhooks.cache_storeAUTENTIQUE_WEBHOOK_CACHE_STOREthe defaultthe cache store remembering them
oauth.client_id, oauth.client_secret, oauth.redirect_uriAUTENTIQUE_OAUTH_CLIENT_ID, …_CLIENT_SECRET, …_REDIRECT_URInonethe OAuth application; see OAuth
oauth.urlAUTENTIQUE_OAUTH_URLhttps://api.autentique.com.br/oauthwhere authorize and token live
retry.sleepAUTENTIQUE_RETRY_SLEEP1000milliseconds to wait, times the attempt number, when Autentique sends no Retry-After

Keys are added by the features that read them, and each is listed here when it lands.

Scalars only

Every value in the file is a string, a number, a boolean, null or a list of strings, so php artisan config:cache keeps working. If you publish the file and edit it, keep it that way: an enum or an object in a config file fails at config:cache, typically on the deployment that first runs it.

Retries

Only a request Autentique refused, with HTTP 429, is retried. A timeout or a server error never is, because it may have been processed. See errors.

Changing the endpoint

url exists for tests against a local stub and for Autentique's Corporate endpoint. There is no sandbox endpoint: sandbox is an argument of the calls that accept it, with sandbox as its default.

Version 1.0.0. Released under the MIT License.