I am setting up my Integration Testing app for CIS2 Healthcare Worker authentication.
-
App name:
mos-nhs-cis2 -
App ID:
f5462fa6-50d2-40c3-ac80-053dae5da2c5 -
API Key:
lmzYMGw1ElsGkhcS73hU6EgCXzlllglR -
Enabled APIs:
-
Personal Demographics Service – Healthcare Worker (Integration Testing)

-
Healthcare Worker API – Application Restricted (Integration)

-
mock-jwks (Integration)

-
When I call the mock-jwks endpoint:
curl -H “apikey: lmzYMGw1ElsGkhcS73hU6EgCXzlllglR”
https://int.api.service.nhs.uk/mock-jwks/keycloak-client-credentials
the response always contains the generic client
“cis2”: {
“client_id”: “pytest-nhsd-apim”,
“client_secret”: “…”,
“redirect_uri”: “https://example.org”
}
How could I pair my app mos-nhs-cis2 with the CIS2 Mock IdP?
POST https://int.api.service.nhs.uk/oauth2-mock/token
grant_type:urn:ietf:params:oauth:grant-type:token-exchange
subject_token_type:urn:ietf:params:oauth:token-type:id_token
subject_token:eyJhbGc…
client_assertion_type:urn:ietf:params:oauth:client-assertion-type:jwt-bearer
client_assertion:eyJhbGc…I am getting something like this:
{
“error”: “invalid_request”,
“error_description”: “Missing or non-matching ‘iss’ claim in subject_token JWT”,
“message_id”: “rrt-8746887105373597003-a-geu2-3829065-104644720-1”
}That is why I need to use my app_id and my APP related details where I found client_id not found.
Thank you.