-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Implement async interactive authentication #6451
Comments
Similar to #6293, I've noticed that this task has been open for ~3 years, so I wonder what is the known "workaround" to use an interactive credential with async clients e.g. AsyncDataLakeServiceClient? Is there a way to acquire token using sync interactive credential class and pass it to (e.g.) AsyncDataLakeServiceClient? Or perhaps a completely other way? |
Thanks for asking. A simple workaround is you can implement an async interactive credential class and in async def get_token(self, *scopes: str, **kwargs: "Any") -> "AccessToken": method, you call the sync one and return the token. Please let us know if it doesn't work. |
thank you @xiangyan99 ! indeed, this workaround worked very well. Shall such an implementation be submitted to the package? I'm happy to open a PR. Wouldn't even a minimal class implementing this be of help? or are there concerns? |
Thanks for the suggestion. We decide not to ship the workaround in our package because we don't want to lie to our customers. :) I will have a gist snippet to demo the workaround. |
Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you! |
No description provided.
The text was updated successfully, but these errors were encountered: