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

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

Open
ScottChapman opened this issue Aug 24, 2017 · 1 comment
Open

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

ScottChapman opened this issue Aug 24, 2017 · 1 comment

Comments

@ScottChapman
Copy link

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
Copy link

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

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