Skip to content

Commit

Permalink
Send scopes to GitHub when authorizing (#17)
Browse files Browse the repository at this point in the history
Without these, the client does not have the expected permissions.
  • Loading branch information
tonyarnold authored Dec 21, 2023
1 parent b33e2e0 commit 9011a01
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/OAuthenticator/Services/GitHub.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9011a01

Please sign in to comment.