question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Python] Credentials parameter should not be mandatory

See original GitHub issue

In 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:closed
  • Created 7 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
lmazuelcommented, Jan 13, 2017

@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 😃

1reaction
amarzaverycommented, Jan 13, 2017

Ahh I see… You are right… It should be documented that -AddCredentials is always true for Azure Generator.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found