[Python] Credentials parameter should not be mandatory
See original GitHub issueIn the Fabric Swagger, generated with “Python” (and not Azure.Python), credentials are optional (service endpoint can be configured on http instead of https). However, it seems Autorest always generate this parameter and check its existence. This means that for an unsecured Fabric endpoint, I have to create the client this way:
client = azure.fabric.ServiceFabricClient(
api_version='2.0',
base_url='http://mycluster.westus.cloudapp.azure.com:19080',
credentials = 'fake'
)
The client works well and the operations are ok, so it’s a proof that credentials is not used at all.
I think it’s a python issue, but the Swagger might have a mistake too (not sure what to check)
FYI @annatisch
Issue Analytics
- State:
- Created 7 years ago
- Comments:13 (13 by maintainers)
Top Results From Across the Web
How to hide sensitive credentials using Python - GeeksforGeeks
As the name suggests it should not be publicly shared as it defeats ... python file say secrets.py and import it into the...
Read more >How to pass pipeline credential parameter to python script as ...
How can I pass those parameters to the env so the python script can use them with os.getenv? Groovy file code:
Read more >ClientId in UsernamePasswordCredential Class · Issue #19680
Generally, any credential in the azure.identity namespace that ... There I can see tenant id was not mandatory and in order to keep...
Read more >Developing New Credential Providers
The arguments to the standard __init__() method are not defined by the interface specification; those may be used to initialize your credential provider...
Read more >hmac — Keyed-Hashing for Message Authentication ...
The digestmod parameter is now required. Pass it as a keyword argument to avoid awkwardness when you do not have an initial msg....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@fearthecowboy guess this is another thing like https://github.com/Azure/autorest/issues/1647 that you want to enforce in a “Core for Azure” part 😃
Ahh I see… You are right… It should be documented that -AddCredentials is always true for Azure Generator.