diff options
author | Tristan Schwieren <tristan.schwieren@tum.de> | 2022-05-04 15:41:22 +0200 |
---|---|---|
committer | Tristan Schwieren <tristan.schwieren@tum.de> | 2022-05-04 15:41:22 +0200 |
commit | a37326ef5411ab5465e9a6b287bf2d4ada38a339 (patch) | |
tree | c609cfa5a201c793801cca8c7cab8cd2ac5d7363 | |
parent | 075a848ad51033061a29cf0f89142c7c62678084 (diff) |
- true/false flip bug while reading oidc config
-rw-r--r-- | src/reclaim/plugin_rest_openid_connect.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/reclaim/plugin_rest_openid_connect.c b/src/reclaim/plugin_rest_openid_connect.c index bb8e1cd1e..d2cbe047d 100644 --- a/src/reclaim/plugin_rest_openid_connect.c +++ b/src/reclaim/plugin_rest_openid_connect.c @@ -2285,7 +2285,7 @@ token_endpoint (struct GNUNET_REST_RequestHandle *con_handle, jwa = JWT_ALG_VALUE_RSA; } - if (strcmp(jwa, JWT_ALG_VALUE_RSA)) + if ( ! strcmp (jwa, JWT_ALG_VALUE_RSA)) { // Replace for now oidc_jwk_path = get_oidc_jwk_path (cls); @@ -2298,7 +2298,7 @@ token_endpoint (struct GNUNET_REST_RequestHandle *con_handle, (NULL != nonce) ? nonce : NULL, oidc_jwk); } - else if (strcmp(jwa, JWT_ALG_VALUE_HMAC)) + else if ( ! strcmp (jwa, JWT_ALG_VALUE_HMAC)) { // TODO OPTIONAL acr,amr,azp if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_string (cfg, @@ -2328,7 +2328,7 @@ token_endpoint (struct GNUNET_REST_RequestHandle *con_handle, GNUNET_free (jwt_secret); } - else + else { // TODO: OPTION NOT FOUND ERROR } |