You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How do I retrieve customer secret key created using identitydomains Python SDK

edited May 21, 2025 2:45PM in Identity and Access Management 18 comments

I have Python code that generates a customer secret key for the current user.

This uses the following steps:
1. Creates an identity domain client using oci.identity_domains.IdentityDomainsClient API call

2. Creates a customer service key using <identity domain client>.create_my_customer_secret_key API call

The response to this second call does not include the "secretKey" attribute. So I am unable to get the generated key and proceed with the next step.

When I perform this operation in the OCI Console, I get "secretKey" in the response.

How do I get this value using Python SDK? (I tested the same call using OCI CLI "oci identity-domains my-customer-secret-key create" and see the same behavior that I see using Python SDK).

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!