Add 'repos' oauth scope

* repos scope is needed even for read-only access to the user's
  repositories, so it is required for manage repositories to work

(Related to #29)
This commit is contained in:
Teemu Patja 2017-03-14 18:41:02 +02:00
parent 34615a6f92
commit a9b6a28dec
No known key found for this signature in database
GPG Key ID: F5B7035E6580FD4C

View File

@ -27,7 +27,7 @@
(defn authorize-url []
(let [params (codec/form-encode {:client_id (client-id)
:redirect_uri (redirect-uri)
:scope "admin:repo_hook user:email admin:org_hook"
:scope "admin:repo_hook repo user:email admin:org_hook"
:allow_signup true
:state (str (UUID/randomUUID))})]
(str "https://github.com/login/oauth/authorize" "?" params)))