Omniauth settings for each tenant performance issue
Describe the bug
We have observed that the functionality added by #5516 is provoking excessive loading time for pages that include the omniauth_buttons partial.
To Reproduce
We used wrk but any stress tool can do the job.
wrk -t 10 -c 10 -d 60 organization-with-omniauth.tld
and compare the output with:
wrk -t 10 -c 10 -d 60 organization-without-omniauth.tld
Expected behavior
This feature shouldn't affect performance at all.
Screenshots
You can see on the screenshot below that the partial share/omniauth_button_mini is taking 90% of the loading time before 10:55. After 10:55 we disabled the saml connexion in /system the performance is back to normal.

Omniauth settings for each tenant performance issue
Describe the bug
We have observed that the functionality added by #5516 is provoking excessive loading time for pages that include the omniauth_buttons partial.
To Reproduce
We used wrk but any stress tool can do the job.
wrk -t 10 -c 10 -d 60 organization-with-omniauth.tldand compare the output with:
wrk -t 10 -c 10 -d 60 organization-without-omniauth.tldExpected behavior
This feature shouldn't affect performance at all.
Screenshots

You can see on the screenshot below that the partial
share/omniauth_button_miniis taking 90% of the loading time before 10:55. After 10:55 we disabled the saml connexion in /system the performance is back to normal.