diff options
Diffstat (limited to 'src/identity-provider/plugin_rest_openid_connect.c')
-rw-r--r-- | src/identity-provider/plugin_rest_openid_connect.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/identity-provider/plugin_rest_openid_connect.c b/src/identity-provider/plugin_rest_openid_connect.c index d87a345cf..9c2f7fb3d 100644 --- a/src/identity-provider/plugin_rest_openid_connect.c +++ b/src/identity-provider/plugin_rest_openid_connect.c | |||
@@ -732,6 +732,8 @@ cookie_identity_interpretation (struct RequestHandle *handle) | |||
732 | { | 732 | { |
733 | handle->oidc->login_identity = strtok(handle->oidc->login_identity, OIDC_COOKIE_HEADER_INFORMATION_KEY); | 733 | handle->oidc->login_identity = strtok(handle->oidc->login_identity, OIDC_COOKIE_HEADER_INFORMATION_KEY); |
734 | handle->oidc->login_identity = GNUNET_strdup(handle->oidc->login_identity); | 734 | handle->oidc->login_identity = GNUNET_strdup(handle->oidc->login_identity); |
735 | } else { | ||
736 | handle->oidc->login_identity = NULL; | ||
735 | } | 737 | } |
736 | } | 738 | } |
737 | else | 739 | else |
@@ -1014,10 +1016,11 @@ login_check (void *cls) | |||
1014 | return; | 1016 | return; |
1015 | } | 1017 | } |
1016 | } | 1018 | } |
1017 | handle->emsg = GNUNET_strdup("invalid_cookie"); | 1019 | //handle->emsg = GNUNET_strdup("invalid_cookie"); |
1018 | handle->edesc = GNUNET_strdup( | 1020 | //handle->edesc = GNUNET_strdup( |
1019 | "The cookie of the login identity is not valid"); | 1021 | // "The cookie of the login identity is not valid"); |
1020 | GNUNET_SCHEDULER_add_now (&do_redirect_error, handle); | 1022 | //GNUNET_SCHEDULER_add_now (&do_redirect_error, handle); |
1023 | GNUNET_SCHEDULER_add_now (&login_redirection,handle); | ||
1021 | return; | 1024 | return; |
1022 | } | 1025 | } |
1023 | } | 1026 | } |
@@ -1359,8 +1362,8 @@ login_cont (struct GNUNET_REST_RequestHandle *con_handle, | |||
1359 | 1362 | ||
1360 | current_time = GNUNET_new(struct GNUNET_TIME_Absolute); | 1363 | current_time = GNUNET_new(struct GNUNET_TIME_Absolute); |
1361 | *current_time = GNUNET_TIME_relative_to_absolute ( | 1364 | *current_time = GNUNET_TIME_relative_to_absolute ( |
1362 | GNUNET_TIME_relative_multiply (GNUNET_TIME_relative_get_minute_ (), | 1365 | GNUNET_TIME_relative_multiply (GNUNET_TIME_relative_get_second_ (), |
1363 | 30)); | 1366 | 5)); |
1364 | last_time = GNUNET_CONTAINER_multihashmap_get(OIDC_identity_login_time, &cache_key); | 1367 | last_time = GNUNET_CONTAINER_multihashmap_get(OIDC_identity_login_time, &cache_key); |
1365 | if (NULL != last_time) | 1368 | if (NULL != last_time) |
1366 | { | 1369 | { |