Skip to content

Commit

Permalink
Send scopes to GitHub when authorizing
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 committed Dec 21, 2023
1 parent b33e2e0 commit fb6c6d9
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 fb6c6d9

Please sign in to comment.