oracle/oci-python-sdk

Generate bypass code with python OCI

THEBESTSZ opened this issue · 2 comments

Is it possible to remove the phone authenticator, create a bypass or generate an idcs to access https://idcs-(id).identity.oraclecloud.com via OCI command? I formatted my cell phone and lost my authenticator, but I have the credentials to access via OCI api through python, and I would like to know if it is possible, could anyone help me?

I would recommend to use oci-cli
first query your user:

oci identity-domains user  get --user-id ocid1.user.oc1..xxxxxx --endpoint https://idcs-xxxxxxxx.identity.oraclecloud.com

MFA information located at urn-ietf-params-scim-schemas-oracle-idcs-extension-mfa-user

Please check the documentation - https://docs.oracle.com/en-us/iaas/tools/oci-cli/3.38.0/oci_cli_docs/cmdref/identity-domains/user/patch.html