oci-go-sdk icon indicating copy to clipboard operation
oci-go-sdk copied to clipboard

Token not present in Identity Domains' `CreateAuthTokenResponse` and `CreateMyAuthTokenResponse`

Open F21 opened this issue 2 years ago • 6 comments

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 avatar Aug 07 '23 03:08 F21

@F21 thanks for reporting the issue, we will have Identity look at this and confirm.

KartikShrikantHegde avatar Aug 07 '23 17:08 KartikShrikantHegde

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 avatar Aug 08 '23 17:08 jyotisaini

@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

F21 avatar Aug 08 '23 22:08 F21

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.

jyotisaini avatar Aug 11 '23 17:08 jyotisaini

Any updates for this one? This is a pretty big blocker for us.

F21 avatar Sep 18 '23 22:09 F21

Any update for this one?

F21 avatar Mar 07 '24 08:03 F21

This has been released today. Closing the issue.

jyotisaini avatar Oct 23 '24 21:10 jyotisaini