Add jwt to get iss-grant result judgement

This commit is contained in:
lixiumei
2022-04-26 07:20:32 +00:00
parent 4246c692d0
commit baaf006275
+5
View File
@@ -234,6 +234,11 @@ static void *neu_jwt_decode(char *token)
}
name = jwt_get_grant(jwt_test, "iss");
if (NULL == name) {
log_error("jwt get iss grant error, the token is: %s", token);
jwt_free(jwt_test);
return NULL;
}
for (int i = 0; i < n_pub_file; i++) {
if (NULL != strstr((char *) pub_key_files[i].name, name)) {