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

Support login with 2FA #445

Open
farodin91 opened this issue May 27, 2024 · 2 comments
Open

Support login with 2FA #445

farodin91 opened this issue May 27, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@farodin91
Copy link

Current SDK Version

6.7.6

Use-cases

Basic Auth isn't support anymore. It would be great to login with the 2FA.

Attempted Solutions

Proposal

Support login with 2FA.

  • allow generation of tokens via cli

References

@farodin91 farodin91 added the enhancement New feature or request label May 27, 2024
@avirtopeanu-ionos
Copy link
Contributor

avirtopeanu-ionos commented May 27, 2024

Hi, if you have 2FA enabled you need to use the DCD to manage your tokens: https://docs.ionos.com/cloud/getting-started/basic-tutorials/manage-authentication-tokens#generate-authentication-token

You can then use this token in the CLI by exporting IONOS_TOKEN or generate a config file containing that token: ionosctl login --token TOKEN.

From https://api.ionos.com/docs/cloud/v6/:

For the Token management APIs, if you have:

  • 2-Factor Authentication enabled, then you are no longer allowed to create or delete tokens using this API. You can use the Token Manager in the Data Center Designer (DCD) to create or delete tokens.

Since ionosctl uses this API for the 'token' command, we can't add support for token creation with 2FA enabled.

@farodin91
Copy link
Author

It would be great to support a flow via cli/api as it complicated to automate the process with manual UI interaction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants