Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bitbucket OAuth #201

Closed
mathstuf opened this issue Feb 9, 2015 · 4 comments
Closed

bitbucket OAuth #201

mathstuf opened this issue Feb 9, 2015 · 4 comments

Comments

@mathstuf
Copy link
Contributor

mathstuf commented Feb 9, 2015

Should probably use OAuth as well.

@ryneeverett
Copy link
Collaborator

I looked into implementing this, but was disappointed at what I found:

My primary motivation to implement this was to avoid needing to provide bugwarrior a password, but OAuth2 doesn't solve that. And web browser login on every bugwarrior-pull is obviously not an option.

@ryneeverett
Copy link
Collaborator

For future reference though, requests_oauthlib has a Bitbucket OAuth1 tutorial.

@ryneeverett
Copy link
Collaborator

I knew I had to be wrong about this so I kept digging. You can get a refresh token:

Most access token grant response therefore include a refresh token that can then be used to generate a new access token, without the need for end user participation

So I guess we could prompt for a password on first usage and thereafter use the refresh token.

@ryneeverett
Copy link
Collaborator

Bugwarrior doesn't seem to persist any data of its own currently, so I think we'd need to add a ~/.task/bugwarrior.data file to store the refresh token, per the third-party guidelines:

If you need to store additional data, consider putting your own data file in the ~/.task directory. Just don't use the file names pending.data, completed.data, backlog.data, or undo.data.

ryneeverett added a commit to ryneeverett/bugwarrior that referenced this issue Jan 28, 2016
- Implement OAuth2. Thanks to @ibuchanan for helping me navigate
  bitbucket's idiosyncratic implementation.
- Add a bugwarrior.data file to the ~/.task directory, per [taskwarrior's
  third-party guidelines](https://taskwarrior.org/docs/3rd-party.html#guidelines).
ryneeverett added a commit to ryneeverett/bugwarrior that referenced this issue Feb 17, 2016
- Implement OAuth2. Thanks to @ibuchanan for helping me navigate
  bitbucket's idiosyncratic implementation.
- Add a bugwarrior.data file to the ~/.task directory, per [taskwarrior's
  third-party guidelines](https://taskwarrior.org/docs/3rd-party.html#guidelines).
ryneeverett added a commit to ryneeverett/bugwarrior that referenced this issue Feb 18, 2016
- Implement OAuth2. Thanks to @ibuchanan for helping me navigate
  bitbucket's idiosyncratic implementation.
- Add a bugwarrior.data file to the ~/.task directory, per [taskwarrior's
  third-party guidelines](https://taskwarrior.org/docs/3rd-party.html#guidelines).
ryneeverett added a commit to ryneeverett/bugwarrior that referenced this issue Feb 18, 2016
- Implement OAuth2. Thanks to @ibuchanan for helping me navigate
  bitbucket's idiosyncratic implementation.
- Add a bugwarrior.data file to the ~/.task directory, per [taskwarrior's
  third-party guidelines](https://taskwarrior.org/docs/3rd-party.html#guidelines).
ryneeverett added a commit to ryneeverett/bugwarrior that referenced this issue Mar 4, 2016
- Implement OAuth2. Thanks to @ibuchanan for helping me navigate
  bitbucket's idiosyncratic implementation.
- Add a bugwarrior.data file to the ~/.task directory, per [taskwarrior's
  third-party guidelines](https://taskwarrior.org/docs/3rd-party.html#guidelines).
ryneeverett added a commit to ryneeverett/bugwarrior that referenced this issue Mar 4, 2016
- Implement OAuth2. Thanks to @ibuchanan for helping me navigate
  bitbucket's idiosyncratic implementation.
- Add a bugwarrior.data file to the ~/.task directory, per [taskwarrior's
  third-party guidelines](https://taskwarrior.org/docs/3rd-party.html#guidelines).
ryneeverett added a commit to ryneeverett/bugwarrior that referenced this issue Mar 4, 2016
- Implement OAuth2. Thanks to @ibuchanan for helping me navigate
  bitbucket's idiosyncratic implementation.
- Add a bugwarrior.data file to the ~/.task directory, per [taskwarrior's
  third-party guidelines](https://taskwarrior.org/docs/3rd-party.html#guidelines).
ryneeverett added a commit that referenced this issue Mar 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants