mirror of
https://github.com/emqx/neuron.git
synced 2026-10-18 13:41:22 +08:00
Add jwt to get iss-grant result judgement
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user