Problem/Motivation
When modifying the configured authentication providers, if you set "save and set default" while saving an authorization and the authorization fails, it will still set that provider as the default even though the request failed.
Steps to reproduce
* Have multiple providers configured.
* Modify one provider, click "Save and set default", then click the "Save" button.
* Have the authorization fail for some reason.
Proposed resolution
A provider should only be set as "default" if the authorization was successful.
Remaining tasks
User interface changes
API changes
Data model changes
Comments
Comment #2
damienmckennaThis is related to #3255740: Allow overriding of auth provider settings., because it isn't currently possible to lock down the configuration per environment using settings.php overrides.