The login screen takes a significant amount of time to load. This is due to it making a request to login.windows.net whenever the page loads. That request is taking 6 seconds to perform. It is not strictly necessary.
Here is the function that is running: https://github.com/WebDevStudios/aad-first-party-sso-wordpress/blob/master/Settings.php#L144
It should be updated to cache the json output in a transient for a while and look there. It currently attempts to load a file. Maybe that was a caching attempt but it will never work.
Should be an easy refactor.
The login screen takes a significant amount of time to load. This is due to it making a request to login.windows.net whenever the page loads. That request is taking 6 seconds to perform. It is not strictly necessary.
Here is the function that is running: https://github.com/WebDevStudios/aad-first-party-sso-wordpress/blob/master/Settings.php#L144
It should be updated to cache the json output in a transient for a while and look there. It currently attempts to load a file. Maybe that was a caching attempt but it will never work.
Should be an easy refactor.