Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

add a note to new github oauth requests #13

Merged
merged 1 commit into from over 1 year ago

2 participants

Donald Ephraim Curtis Yann Hodique
Donald Ephraim Curtis

By default new oauth tokens appears as GitHub API but it seems worth using gh.el - <hostname> as a better nomenclature. This allows one to know which keys to revoke in their "Authorized Applications" tab in cases where they would like to.

Yann Hodique sigma merged commit 565b8a0 into from
Yann Hodique sigma closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Sep 27, 2012
Donald Ephraim Curtis add github oauth note when creating new oauth token 624528d
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  gh-oauth.el
4  gh-oauth.el
@@ -98,7 +98,9 @@
98 98
 (defmethod gh-oauth-auth-new ((api gh-oauth-api) &optional scopes)
99 99
   (gh-api-authenticated-request
100 100
    api (gh-object-reader (oref api auth-cls)) "POST"
101  
-   (format "/authorizations") (list (cons 'scopes scopes))))
  101
+   (format "/authorizations") (list (cons 'scopes scopes)
  102
+                                    (cons 'note (format "gh.el - %s"
  103
+                                                        (system-name))))))
102 104
 
103 105
 (defmethod gh-oauth-auth-update ((api gh-oauth-api) id &optional scopes)
104 106
   (gh-api-authenticated-request
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.