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

ibmcloud authentication support #1315

Closed
allmightyspiff opened this issue Aug 4, 2020 · 3 comments · Fixed by #1447
Closed

ibmcloud authentication support #1315

allmightyspiff opened this issue Aug 4, 2020 · 3 comments · Fixed by #1447
Assignees
Labels
Core Issues dealing with core functionality
Projects

Comments

@allmightyspiff
Copy link
Member

Support for ibmcloud IAM identities.

slcli config setup

Should allow for users to setup with their ibmcloud user/pass like the ibmcloud cli does.
The difference would be this setup would still add an API key for further use (ibmcloud just re-auths with a refresh token I believe).

transport support

rest/xmlrpc transports should support this format.

Process

Described a bit here: https://sldn.softlayer.com/article/authenticating-softlayer-api/

basically query https://iam.cloud.ibm.com/identity/ to get the iam_token
use that token to create an API key
setup that api key in the ~/.softlayer file

@allmightyspiff allmightyspiff self-assigned this Aug 4, 2020
@allmightyspiff allmightyspiff added the Core Issues dealing with core functionality label Aug 4, 2020
@markododa
Copy link

For a new ibm cloud, is the python script at the end necessary for creating a softlayer user?
I only managed to login with an api key and "apikey" as username only after succesfully running that script.

@allmightyspiff
Copy link
Member Author

The script at the end of https://sldn.softlayer.com/article/authenticating-softlayer-api/? No, It shouldn't be neccessary.

An API key created here ( https://cloud.ibm.com/iam/apikeys ) should work in the latest versions of the SLCLI (with the username "apikey").

An API created here ( https://cloud.ibm.com/iam/users/?tab=userdetails) is the legacy style, where you would authenticate with the api username, and api key. Currently it is the only style of authentication the SLCLI supports.
image

@markododa
Copy link

Yes, using apikey with the new api works now, however that started working after i ran the script, but i guess i have missed some step. Thank you!

@allmightyspiff allmightyspiff added this to To do in Q4 2020 via automation Oct 26, 2020
@allmightyspiff allmightyspiff removed this from To do in Q4 2020 Jan 5, 2021
@allmightyspiff allmightyspiff added this to To do in Q1 2021 via automation Mar 17, 2021
allmightyspiff added a commit to allmightyspiff/softlayer-python that referenced this issue Mar 22, 2021
allmightyspiff added a commit to allmightyspiff/softlayer-python that referenced this issue Mar 24, 2021
@allmightyspiff allmightyspiff linked a pull request Apr 2, 2021 that will close this issue
@allmightyspiff allmightyspiff removed this from To do in Q1 2021 Apr 2, 2021
@allmightyspiff allmightyspiff added this to To do in Q2 2021 via automation Apr 2, 2021
@allmightyspiff allmightyspiff moved this from To do to In Progress in Q2 2021 Apr 2, 2021
Q2 2021 automation moved this from In Progress to Done Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Issues dealing with core functionality
Projects
No open projects
Q2 2021
  
Done
Development

Successfully merging a pull request may close this issue.

2 participants