Ready to post?
First, try searching for your answer.
Hello. I’m new to auth0 and am having some problems trying to manage my resources with terraform. I’ve imported pre-existing resources into terraform (auth0 tf generate) but I want to access the client id, client secret and domain values for each app and store them in our vault (aws secrets manager). In the auth0 console these would be under “Application > Settings” (not Credentials).
I cannot determine in which resource these data exist. I don’t see them in auth0_client and I’m not sure auth0_client_credentials is correct either.
Any assistance would be greatly appreciated.
Hi @jjvortex
Welcome to the Auth0 Community!
The Client ID and Secret can be accessed via the auth0_client_credentials
resource. However, in order to access the Client Secret, you need additional configuration on your terraform client as stated in the documentation:
client_secret
(String, Sensitive) Secret for the client when using client_secret_post
or client_secret_basic
authentication method. Keep this private. To access this attribute you need to add the read:client_keys
scope to the Terraform client. Otherwise, the attribute will contain an empty string. The attribute will also be an empty string in case private_key_jwt
is selected as an authentication method.
If you have any other questions, feel free to leave a reply!
Kind Regards,
Nik
1 Like