mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-01 01:12:43 -05:00
Every request on a connection using Microsoft Entra ID authentication fetched a fresh access token, and the server stalled for all users while it waited for Azure to answer. The token is now fetched without holding up other users' requests, and it is reused until it is close to expiring instead of being fetched again on every request. <table> <tr><th></th><th>Before</th><th>After</th></tr> <tr><td>Longest server stall, two requests with a 300 ms token fetch</td><td>611 ms</td><td>11 ms</td></tr> <tr><td>Token fetches for two requests</td><td>2</td><td>1</td></tr> </table> Relates to #35245