API to programmatically generate a token

Description of the feature request

OAuth API for generating a token for use by an external tool.

Use case / for what or how I would use it

When building a tool that integrates with Bitrise, the user currently needs to generate a personal API token manually. It would be nice if the tool could present a more user-friendly interface for the user to login with Bitrise and obtain an API token.

Thanks for the #feature-request @dtweston! This would be very convenient for sure, can you give us some example use cases?

As I mentioned in the other thread, I’m planning to build a Mac menubar app to monitor your builds, so it would be nice to be able to let the user login and obtain a token.

Ideally, I could pop up a web view in my app, let the user login to Bitrise, and get a redirect back to my app with the token (something like: bitrise-app://login?token={token}).