Skip to content

Commit

Permalink
Properly populate out decoded JWT
Browse files Browse the repository at this point in the history
Closes #3098

(cherry picked from commit d2601f3)
  • Loading branch information
vladpaiu committed Jul 1, 2023
1 parent 26ffa9d commit 94e64e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/auth_jwt/authorize.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ int jwt_script_authorize(struct sip_msg* _msg, str* jwt_token, str* key,
}

/* decoded the JWT - we can push to out */
pv_val.flags = PV_VAL_STR;
pv_val.rs.s = jwt_dump_str(jwt,0);
pv_val.rs.len = strlen(pv_val.rs.s);
if (pv_set_value(_msg,decoded_jwt,0,&pv_val) != 0) {
Expand Down

0 comments on commit 94e64e3

Please sign in to comment.