“Data provided to the operation does not meet requirements.”
Using the below key, I get the above error message. Severely unhelpful: too vague.
JWT text:
{"kty":"RSA","e":"AQAB","use":"sig","kid":"FHIRKey","alg":"RS384","n":"wX13sp7q6FabPHFwUtEmrf0tyB41Ecw7nqnaUUjxvIzAOmeMGZHz31-WMmgKAAdCSF8yMF-ECc7bP5kSnRBu8GNGdbMi1lz3Zdro-Zn3GNDizvnmgcRXem40NkSMMSL8mwETk7gnZEkLTW1ujPzIQ5HlNFUD5_8K9VtpaabFbZHc-5zSh91DNP5Yla-yqgWmCt07o6_2Wbk6E_z7k9ZunYd9t4-S6QazyyRwvo0kLpfRjaA1BujNH6PErBl47P-EB3xEhfl55sbcRXrucI_LEWT6ghAZorIudG78LuKkSaQfsDhIpGUqwMdyPfRuZi5C1j36MJ7TVFDOg_Nfg7OTJLYT7cau65wK2pPXf0YYDfblyCWzN1P0Xoz5IaYm-oJapKps3RTZTwaKa7lDMiqKDAb3tRnc9SSjGRncCj0xFyqz6Ym4D-wvqWsHmMmc2ujlTkI4TV3QVTs8PcjkR7W2xLWHfv_eOEOjeCbNYxY72yEx-O9tVbtqxRkp83xWiM4wus6xxI7XAoMOsWlyNXlq1ewukY2BFyYS1Doi1CNG3Ad4H1uiR2AhdIE17YaLCuC0wiC_z-f4NzDpaHElt88OQPi36GXf4iEsKx-9RFI0BXcABh1itTMb9xdbXc1b9E6yI-G0Fvd_DzTDLhNcwiX1tqOA98L7qwrrlB2R6Tg9pS0="}
Also, doesn’t seem like the tool supports multiple keys?
Hi @hunter.kirkland
I am sorry for the delayed response.
The exact reason you are receiving the “Data provided to the operation does not meet requirements” error is that your key’s modulus (n parameter) contains an illegal padding character (=) at the very end. Furthermore, if the tool seems to only support a single key, it is likely because you are submitting a standard JSON Web Key (JWK) object rather than a JSON Web Key Set (JWKS) array.
Simply delete the = at the end of the n parameter. Here is your corrected, strictly valid JWK.
If the tool you are using allows for multiple keys, wrap your corrected key(s) in the standard JWKS structure:
{
"keys": [
{
"kty": "RSA",
"e": "AQAB",
"use": "sig",
"kid": "FHIRKey",
"alg": "RS384",
"n": "wX13sp7q..."
},
{
"kty": "RSA",
"e": "AQAB",
"use": "sig",
"kid": "SecondKey",
"alg": "RS384",
"n": "..."
}
]
}
Kind Regards,
Nik
Still can’t tell what’s wrong. Your site really needs improved error messages.
{
"keys": [
{
"kty": "RSA",
"e": "AQAB",
"use": "sig",
"kid": "FHIR Key",
"alg": "RS256",
"n": "wX13sp7q6FabPHFwUtEmrf0tyB41Ecw7nqnaUUjxvIzAOmeMGZHz31-WMmgKAAdCSF8yMF-ECc7bP5kSnRBu8GNGdbMi1lz3Zdro-Zn3GNDizvnmgcRXem40NkSMMSL8mwETk7gnZEkLTW1ujPzIQ5HlNFUD5_8K9VtpaabFbZHc-5zSh91DNP5Yla-yqgWmCt07o6_2Wbk6E_z7k9ZunYd9t4-S6QazyyRwvo0kLpfRjaA1BujNH6PErBl47P-EB3xEhfl55sbcRXrucI_LEWT6ghAZorIudG78LuKkSaQfsDhIpGUqwMdyPfRuZi5C1j36MJ7TVFDOg_Nfg7OTJLYT7cau65wK2pPXf0YYDfblyCWzN1P0Xoz5IaYm-oJapKps3RTZTwaKa7lDMiqKDAb3tRnc9SSjGRncCj0xFyqz6Ym4D-wvqWsHmMmc2ujlTkI4TV3QVTs8PcjkR7W2xLWHfv_eOEOjeCbNYxY72yEx-O9tVbtqxRkp83xWiM4wus6xxI7XAoMOsWlyNXlq1ewukY2BFyYS1Doi1CNG3Ad4H1uiR2AhdIE17YaLCuC0wiC_z-f4NzDpaHElt88OQPi36GXf4iEsKx-9RFI0BXcABh1itTMb9xdbXc1b9E6yI-G0Fvd_DzTDLhNcwiX1tqOA98L7qwrrlB2R6Tg9pS0"
}
]
}