Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token not present in Identity Domains' CreateAuthTokenResponse and CreateMyAuthTokenResponse #448

Open
F21 opened this issue Aug 7, 2023 · 6 comments
Labels
SDK Issue pertains to the SDK itself and not specific to any service

Comments

@F21
Copy link

F21 commented Aug 7, 2023

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.

@KartikShrikantHegde KartikShrikantHegde added the SDK Issue pertains to the SDK itself and not specific to any service label Aug 7, 2023
@KartikShrikantHegde
Copy link

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

@jyotisaini
Copy link

jyotisaini commented Aug 8, 2023

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 ?

@F21
Copy link
Author

F21 commented Aug 8, 2023

@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

@jyotisaini
Copy link

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.

@F21
Copy link
Author

F21 commented Sep 18, 2023

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

@F21
Copy link
Author

F21 commented Mar 7, 2024

Any update for this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SDK Issue pertains to the SDK itself and not specific to any service
Projects
None yet
Development

No branches or pull requests

3 participants