From 1b979696dfb66ce7fa958ecb9535e50f43ed994c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthieu=20Barth=C3=A9lemy?= Date: Thu, 11 Mar 2021 08:25:24 +0800 Subject: [PATCH] Update MicrosoftRouter.swift Remove invalid `www` from Microsoft oAuth login URL --- Sources/ImperialMicrosoft/MicrosoftRouter.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/ImperialMicrosoft/MicrosoftRouter.swift b/Sources/ImperialMicrosoft/MicrosoftRouter.swift index a768b6ef..1d05d6a9 100644 --- a/Sources/ImperialMicrosoft/MicrosoftRouter.swift +++ b/Sources/ImperialMicrosoft/MicrosoftRouter.swift @@ -26,7 +26,7 @@ public class MicrosoftRouter: FederatedServiceRouter { public func authURL(_ request: Request) throws -> String { var components = URLComponents() components.scheme = "https" - components.host = "www.login.microsoftonline.com" + components.host = "login.microsoftonline.com" components.path = "/\(tenantID)/oauth2/v2.0/authorize" components.queryItems = [ clientIDItem,