Skip to content

Commit 7390a49

Browse files
author
Samar Pratap Singh
committed
Bug#37009970 authentication_openid_connect_client plugin remembers
token-file variable between sessions Problem: When using the authentication_openid_connect_client plugin by MySQL shell, it was found out, that token-file path provided is remembered between sessions and there is no proper way to clear it. Fix: authentication_openid_connect_client_id_token_file can be set to nullptr. Change-Id: I08a5b74025f81d4400419e022df173f018903b98
1 parent 19a795a commit 7390a49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libmysql/authentication_openid_connect_client/authentication_openid_connect_client_plugin.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ static int authentication_openid_connect_client_option(const char *option,
235235
const char *value = static_cast<const char *>(val);
236236
if (strcmp(option, "id-token-file") == 0) {
237237
free_plugin_option(s_id_token_location);
238-
if (value == nullptr) return 1;
238+
if (value == nullptr) return 0;
239239
const std::ifstream file(value);
240240
if (file.good()) {
241241
s_id_token_location = my_strdup(PSI_NOT_INSTRUMENTED, value, MYF(MY_WME));

0 commit comments

Comments
 (0)