GV.Access scope.
Workloads use application tokens and the API roles described below. General
Validation does not issue API keys or use browser-session cookies for API access.
The hosted application and API have separate Entra registrations. The API
client ID identifies the resource your workload calls. The browser application’s
client ID is not the API audience.
Your Organization must already be activated in the caller’s Entra directory.
General Validation resolves the Organization from the token’s verified tenant;
a supplied Organization ID cannot select another tenant’s resources. Machine
clients cannot activate an Organization or accept a person’s invitation.
API roles
Assign the lowest cumulative application role the workflow needs on the General Validation API’s service principal in your directory:
The endpoint reference states the minimum role for each
operation. Contributor includes Reader; Owner includes both. The highest
recognized assignment applies, so one appropriate role is sufficient.
Application roles authorize a workload without a human membership record.
Delegated users instead need an active Organization membership with the
operation’s corresponding Reader, Contributor, or Owner role.
Set up an API caller
1. Record the API identifiers
Obtain the following nonsecret values from your Organization’s API connection configuration or General Validation support:- The General Validation API origin, separate from the browser app origin.
- The API application client ID, separate from the browser app client ID.
- Your Organization’s Microsoft Entra directory (tenant) ID.
<API origin>/openapi.json publishes its
configured server and authentication metadata. In
components.securitySchemes.entraApplication, x-gv-scope supplies the
client-credentials scope. Remove its /.default suffix to obtain the resource
URI for managed-identity activities. The
API guide shows how
to retrieve it after authenticating.
2. Select and authorize the workload
Use a dedicated customer-owned identity: a managed identity for an Azure workload, or a workload application using federation, a certificate, or a customer-managed credential. For a workload application, an Entra administrator adds the General Validation API’s Application permission to the caller and grants admin consent. Choose one role from the table above. A managed identity has a service principal rather than an editable app registration. An administrator assigns the selected API application role directly to that service principal. For example, the following assigns Reader to an existing managed identity when run by an administrator authorized to assign application roles:GV.APIContributor to the orchestration factory’s system-assigned
identity. A generic Azure subscription Contributor role does not grant API
access.
3. Acquire and send a token
For client credentials, use your Organization’s tenant-specific authority:api://<general-validation-api-client-id> without
/.default. The resulting Entra v2 application token must have idtyp: app
and the API’s bare client-ID GUID in aud. Requesting a scope does not grant
an application role.
Send the token over HTTPS to the API origin:
4. Verify access
Start with the capabilities resource:gv_api_origin to the API origin with no trailing slash. The response
reports the caller’s effective role and current API limits. A 401 means
authentication failed. A 403 can mean the verified directory is not connected
to an activated Organization or the caller lacks the required access; follow
the returned problem code and detail.