Skip to content

Commit 084d67b

Browse files
tokangasrlubos
authored andcommitted
net: lib: nrf_cloud: Remove unnecessary sub claim from JWT
Fixed regression from bd2d4a4, which caused a sub claim with the device UUID to be included in the generated JWT with nRF91x1. The sub claim is only needed when device UUID is not used as the nRF Cloud Device ID. Signed-off-by: Tommi Kangas <tommi.kangas@nordicsemi.no>
1 parent e795138 commit 084d67b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

subsys/net/lib/nrf_cloud/common/src/nrf_cloud_jwt.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ int nrf_cloud_jwt_generate(uint32_t time_valid_s, char *const jwt_buf, size_t jw
209209
exp_delta_s = NRF_CLOUD_JWT_VALID_TIME_S_DEF;
210210
}
211211

212-
if (IS_ENABLED(CONFIG_NRF_CLOUD_CLIENT_ID_SRC_INTERNAL_UUID)) {
212+
if (IS_ENABLED(CONFIG_NRF_CLOUD_CLIENT_ID_SRC_INTERNAL_UUID) ||
213+
IS_ENABLED(CONFIG_NRF_CLOUD_CLIENT_ID_SRC_MDM_DEVICE_UUID)) {
213214
/* The UUID is present in the iss claim, so there is no need
214215
* to also include it in the sub claim.
215216
*/

0 commit comments

Comments
 (0)