From fb6c6d94e712d4a5b65cc23266e53b266d9e4cec Mon Sep 17 00:00:00 2001 From: Tony Arnold Date: Fri, 22 Dec 2023 00:10:59 +1100 Subject: [PATCH] Send scopes to GitHub when authorizing Without these, the client does not have the expected permissions. --- Sources/OAuthenticator/Services/GitHub.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/OAuthenticator/Services/GitHub.swift b/Sources/OAuthenticator/Services/GitHub.swift index c3276b0..f0896dd 100644 --- a/Sources/OAuthenticator/Services/GitHub.swift +++ b/Sources/OAuthenticator/Services/GitHub.swift @@ -82,6 +82,7 @@ public enum GitHub { urlBuilder.queryItems = [ URLQueryItem(name: "client_id", value: credentials.clientId), URLQueryItem(name: "redirect_uri", value: credentials.callbackURL.absoluteString), + URLQueryItem(name: "scope", value: credentials.scopeString), ] if let state = parameters.state {