DEFRA Data Access Layer Github page, documenting all things DAL.
The DAL requires multiple things to be provided to successfully return a response.
Please note the DAL on the CDP dev
environment has auth disabled so will return a response to all requests
ext-test
and prod
environments are externally accessible.curl --location 'https://login.microsoftonline.com/{tenant_id}/oauth2/v2.0/token' \
--form 'client_id="{client_id}"' \
--form 'scope="{client_id}/.default"' \
--form 'client_secret="{client_secret}"' \
--form 'grant_type="client_credentials"'
email
header.gateway-type
header to "external"x-forwarded-authorization
header to a Defra ID token that contains the relevant CRN and SBI (if requesting business data)