IBM-Cloud / cf-nodejs-client

A Cloud Foundry Client for Node.js
https://doclets.io/IBM-Bluemix/cf-nodejs-client/master
Apache License 2.0
10 stars 21 forks source link

Use BM APIKey instead of user/password credentials? #44

Open ScottChapman opened 7 years ago

ScottChapman commented 7 years ago

Is it possible to use a Bluemix APIKey instead of the actual username/password for the bluemix account? Don't really want to codify those...

leondroidgeeks commented 7 years ago

I am also very interested in using the Bx API Key or at least the CF bearer auth token for authentication. I found out, that with

Apps.setToken(token);
return Apps.getApps();

you can replace token with your bearer token. You need to generate your token with bx cf oauth-token an then creating the following object: {token_type: 'bearer', access_token: token} This object replaces the token above