Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku Platform API - OAuth Token for single Heroku application

Using the Heroku Platform API, is it possible to generate an OAuth Token which only has access to a single Heroku application?

I need to be able to add domains programmatically using Heroku's Platform API, without using a global access token which has access to all my Heroku applications.

Any help would be greatly appreciated!

like image 935
Robbie McFarlane Avatar asked Jun 17 '16 01:06

Robbie McFarlane


1 Answers

I have a workaround.

I created a new heroku account, and I added the new account as a collaborator on just the app I want to give access to.

So the oauth token can be created for the new collaborator account, and it only has access to the app(s) you want it to have access to.

like image 72
DanSingerman Avatar answered Oct 11 '22 16:10

DanSingerman