Only use the server provided mechs if Client:allowed-mechanisms have not been set

Review Request #3590 — Created Oct. 17, 2024 and updated

Information

ibis/ibis
default

Reviewers

This fixes an issue where the server provided mechanisms would always
overwrite whatever the user set which is the complete opposite of what we want
as servers don't always advertise all of their mechanisms or any in some
cases.

Set mechanisms (manually) in the cli and verified it only tried those mechanisms.

Summary ID
Only use the server provided mechs if Client:allowed-mechanisms have not been set
This fixes an issue where the server provided mechanisms would always overwrite whatever the user set which is the complete opposite of what we want as servers don't always advertise all of their mechanisms or any in some cases.
3dc35a63a2a8e63ecb4883692a5052c01e889fcf