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

Authentication to IoTHub using DefaultAzureCredentials to be able to run Direct Methods #1183

Open
jsnchzjmnz opened this issue Jun 4, 2024 · 0 comments
Labels

Comments

@jsnchzjmnz
Copy link

Hi,
I have some Azure IoTHub direct methods working, and I want to call them through Python. I can instantiate the clients using create_from_connection_string, but I want to use DefaultAzureCredential instead Connection Strings. My idea by now is to try to extract a token from DefaultAzureCredential, to be able to use it in other function such as create_from_sastoken or similar.
Does this make sense?
Is there a way to do it that I'm not seeing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant