bswinnerton / launchbar-github

A LaunchBar action for GitHub
http://launchbar-github.com
MIT License
70 stars 7 forks source link

Build an OAuth application to auto-set token #27

Closed bswinnerton closed 7 years ago

bswinnerton commented 7 years ago

I'm not in love with the idea of having to generate a token by hand on https://github.com/settings/tokens/new and then set it with !set-token <token>. Instead (or perhaps, in addition to), it'd be nice if there was a website that offered a convenient way for users to download the action and set the token. This website could allow for users to sign in with GitHub using the OAuth Web Application Flow and generate a token on their behalf. Then, with this token, the website could craft a URL that looks something similar to:

x-launchbar:action/com.github.LaunchBar.action.GitHub/setToken?token=<token>

Which when clicked would invoke runWithURL(url, details) using the Action URL Script functionality in LaunchBar. From there, we could execute the regular setToken functionality.

Huge shout out to @marcomasser for the wonderful suggestion ✨.

bswinnerton commented 7 years ago

I'm beginning work on this in https://github.com/bswinnerton/launchbar-github.com.