Hi,
I am also facing the same issue, i.e., the generateOtp API returns “Unauthorized”, using clientId: SBX_002984
Below is the output I get after decode my accessToken in jwt :
{
“exp”: 1679569685,
“iat”: 1679569085,
“jti”: “0987d883-0b19-4614-9448-80ae50409b9f”,
“iss”: “https://dev.ndhm.gov.in/auth/realms/central-registry”,
“aud”: “account”,
“sub”: “3bf88fd3-674e-4827-9145-d2554fe09981”,
“typ”: “Bearer”,
“azp”: “SBX_002984”,
“session_state”: “3743d14a-a775-40cc-81bb-83046519d6d3”,
“acr”: “1”,
“allowed-origins”: [
“http://localhost:9007”
],
“realm_access”: {
“roles”: [
“hiu”,
“offline_access”,
“healthId”,
“OIDC”,
“hip”
]
},
“resource_access”: {
“SBX_002984”: {
“roles”: [
“uma_protection”
]
},
“account”: {
“roles”: [
“manage-account”,
“manage-account-links”,
“view-profile”
]
}
},
“scope”: “openid email profile”,
“clientId”: “SBX_002984”,
“clientHost”: “10.233.68.60”,
“email_verified”: false,
“preferred_username”: “service-account-sbx_002984”,
“clientAddress”: “10.233.68.60”
}