Skip to content

Commit c8a4127

Browse files
lkotuladahlerlend
authored andcommitted
Bug#37309796 - Inconsistent authentication parameter format and names for MRS Authentication [POSTFIX]
Description =========== New code had disabled old clients, adding support for new and old clients. (POST-PUSH FIX WL#15440) Change-Id: Ia8620bec7aff93f59647c914536b504b5496240c
1 parent 1c12125 commit c8a4127

File tree

1 file changed

+3
-1
lines changed
  • router/src/mysql_rest_service/src/mrs/authentication/helper

1 file changed

+3
-1
lines changed

router/src/mysql_rest_service/src/mrs/authentication/helper/scram.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@ class JsonAuthInitRequest
191191
public:
192192
bool String(const Ch *cstr, rapidjson::SizeType clength, bool) override {
193193
if (!is_object_path()) return true;
194-
if ("username" == get_current_key())
194+
if ("user" == get_current_key() && result_.user.empty())
195+
result_.user.assign(cstr, clength);
196+
else if ("username" == get_current_key())
195197
result_.user.assign(cstr, clength);
196198
else if ("nonce" == get_current_key())
197199
result_.nonce.assign(cstr, clength);

0 commit comments

Comments
 (0)