fix subject in JWT
authorSchanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de>
Sat, 21 Jul 2018 11:34:50 +0000 (13:34 +0200)
committerSchanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de>
Sat, 21 Jul 2018 11:34:50 +0000 (13:34 +0200)
src/reclaim/plugin_rest_openid_connect.c

index d1c5b31b6a88ece8208d2db8912ae3dc6a2a06da..bd11b2de7ba55277e05876dccc0eb17c53369340 100644 (file)
@@ -1606,10 +1606,8 @@ token_endpoint (struct GNUNET_REST_RequestHandle *con_handle,
     GNUNET_free(ticket);
     return;
   }
-  struct GNUNET_CRYPTO_EcdsaPublicKey pk;
-  GNUNET_IDENTITY_ego_get_public_key (ego_entry->ego, &pk);
   char *id_token = jwt_create_from_list(&ticket->audience,
-                                        &pk,
+                                        &ticket->identity,
                                         cl,
                                         &expiration_time,
                                         (NULL != nonce && json_is_string(nonce)) ? json_string_value (nonce) : NULL,