Configure inbound authentication for the async callback
On this page
Configure inbound authentication for the async callback
Set up the API-key authentication profile, access policy, role, and service account that secure the async callback endpoint.
Before you begin
Role required: admin
About this task
The async callback endpoint requires authentication. An API-key inbound authentication profile secures it, bound to the endpoint through a REST API Access Policy. A role gates access further — the calling account must hold that role. There is no shared-secret header.
The authentication chain is as follows:
-
API key in the x-sn-apikey header: SupplyOn presents its API key in the
x-sn-apikeyheader (the default ServiceNow API-key header). This credential identifies the caller. -
API-key authentication profile: An inbound authentication profile of type HTTP Authentication Profile Using API Key (named SupplyOn, in scope
sn_supplyon_po) reads the key fromx-sn-apikey. It then resolves the key to the user that the key belongs to. -
REST API Access Policy binds the profile to the endpoint: A REST API Access Policy targets the callback flow API (api_path
sn_supplyon_po/supplyon_outbound_po_async_callback) and maps it to the SupplyOn API-key profile. The flow security scheme requires authentication and enables external access. -
Endpoint ACL requires the integration-user role: An endpoint ACL requires the
sn_supplyon_po.integration_userrole, so the user that the API key resolves to must also carry this role to invoke the endpoint. -
Role is assigned to a dedicated service account:
sn_supplyon_po.integration_useris assigned only to the dedicated SupplyOn integration service account, never to a human account.
The authentication profile, access policy, security scheme, ACL, and role ship with the application. The API key value is runtime data issued to the service account and must not be committed to source.
Procedure
-
Confirm the dedicated integration service account exists and holds the sn_supplyon_po.integration_user role.
-
In the API Keys module, create an API key attached to the service account, and record its value.
-
Confirm that SupplyOn sends the key in the
x-sn-apikeyheader. -
Provide the endpoint URL and issued key to SupplyOn for portal registration.
What to do next
Note:
-
The integration_user role also includes the procurement integrator role, which is required to create the inbound purchase order confirmation records.
-
The callback subflow runs as system for the staging writes, so the integration-user role is the authentication boundary between SupplyOn and ServiceNow and is kept deliberately narrow.
Keep exploring.
Find another answer, or bring this documentation into your own tools.