Skip to content

Instantly share code, notes, and snippets.

@Bogdaan
Forked from ozh/github_oauth_token.md
Created November 22, 2018 11:45
Show Gist options
  • Select an option

  • Save Bogdaan/4e74e7b3a7726ae43e07fee5954612d7 to your computer and use it in GitHub Desktop.

Select an option

Save Bogdaan/4e74e7b3a7726ae43e07fee5954612d7 to your computer and use it in GitHub Desktop.

Revisions

  1. @ozh ozh renamed this gist Feb 7, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. @ozh ozh created this gist Feb 6, 2013.
    10 changes: 10 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    At the command line:

    ```
    curl -u ':USERNAME' -d '{"scopes":["public_repo"],"note":"Google Issues to GH"}' https://api.github.com/authorizations
    curl -H "Authorization: bearer :TOKEN" https://api.github.com/users/:USERNAME -I
    ```

    Replace `:USERNAME` with your Github username and `:TOKEN` with the oauth token you get from first curl

    After that, the token will be listed in your [Applications](https://github.com/settings/applications) and you can revoke it from there