Skip to content

Screenless QA (QA grant)

The Connect Canverly flow needs a person on the consent screen, which hurts automated tests and CI. Canverly offers no client_credentials and no consent shortcut: the app always acts on behalf of a person. For QA, Canverly issues a QA grant.

A normal grant (same scopes, same rotating refresh, same quotas), created by Canverly instead of the screen, with these constraints:

  • synthetic users only: every e-mail on the account is in a test domain (.test, .invalid, .example or test.<domain>). Never a real person;
  • only for an app with QA allowed, which only the platform operator can enable;
  • the user must be a company member with a role that already reaches the requested scopes (a grant never widens what the person can do), and the scopes must be within the app’s allowed ones;
  • valid for up to 90 days (absolute cap, no automatic renewal);
  • audited with the issuing operator and a note (auth.oauth.grant.qa_emitido.v1), and internally tagged with origin qa_operador.
  1. Register the app and ask the Canverly team to enable QA allowed (only an operator can).
  2. Ask for the grant: give the app, the scopes, which sites (ids or all) and how many days (up to 90). If you have no synthetic user and test company on .net, ask for them too.
  3. Canverly hands over a refresh_token (cvr_...) once, through a secure channel. Keep it as a CI secret, never in the repository.
  4. From there it is the normal flow: exchange the refresh for an access_token.
Janela do terminal
curl -s https://auth.canverly.net/oauth/token \
-u "$CANVERLY_CLIENT_ID:$CANVERLY_CLIENT_SECRET" \
-d grant_type=refresh_token \
-d refresh_token="$CVR_DE_QA"

The usual rules apply: the refresh is rotating (store the new one before using the access_token), and reusing an old refresh outside the 10-second window is treated as theft and revokes the grant. Serialize renewal in your CI.

  • The QA grant expires on the agreed date. Ask for another to continue.
  • It can be revoked at any time like any grant (including by you, with POST /oauth/revoke). With the events webhook you receive grant.revoked.
  • Quotas are those in Rate limits.
  • In test environments the synthetic user’s e-mail and notifications reach nobody: test domains have a null route.
  • Do not use a QA grant for real data. To test with a real person, use the normal consent flow.