On-Premise installations cannot login as Authorization flow is not supported with ADFS
Fixed an issue with login on On-Premise installations of D365F&O so that the application still uses implicit flow since authorization flow with PKCE is not yet supported for AD FS.