oci-go-sdk
oci-go-sdk copied to clipboard
Token not present in Identity Domains' `CreateAuthTokenResponse` and `CreateMyAuthTokenResponse`
The token seems to be missing from the following response types for the IdentityDomainsClient:
Since it is not possible to get the token back after creating them, the CreateAuthToken and CreateMyAuthToken methods are a bit useless.
I did trace the request when creating auth tokens using the OCI dashboard and it appears that a token attribute was returned in the response, so the value appears to be there, just not in the API documentation and the SDK.
@F21 thanks for reporting the issue, we will have Identity look at this and confirm.
Hi @F21 I quickly checked the CreateAuthTokenResponse & CreateMyAuthTokenResponse and in both the response objects we do get back AuthToken and MyAuthToken respectively.
However we do not actually send the content of the token and I think it's by design. Can you help me understand why do you need to the token ?
@jyotisaini I need the contents of the auth token, because I am using Terraform to create the auth tokens and need to set the actual tokens as secrets in my application/deployment.
Is there any other way to retrieve the content of the token after creation? There doesn't seem to be any use-case where one would create the auth token without being able to retrieve the content of the token.
Interestingly, if I create an auth token using the identity service (not identity domains), I am able to get the token back. See AuthToken which is returned by CreateAuthToken
Hi @F21 We've communicated with the Identity domains service team regarding this and they've identified that its a bug. They're planning to update their APIs to include a token and then we will also make corresponding changes to the SDK. Once the changes are implemented, we'll provide you with an update.
Any updates for this one? This is a pretty big blocker for us.
Any update for this one?
This has been released today. Closing the issue.