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.

credential scopes discussion

See original GitHub issue

All languages should be able to support a list of credential scopes (with flag --credential-scopes), so users won’t have to pass credential scopes themselves. Agree with @lmazuel that in ARM mode, we should default the credential scope to https://management.azure.com/.default, since that’s always the case for ARM mode.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
iscai-msftcommented, Jan 28, 2021

yep! currently some languages are doing this themselves, go into it a little bit in the credential-scopes section of flag docs. Since there’s this different behavoir and we want unified, would be nice for autorest core to handle it.

side note: if users input --azure-arm --credential-scopes=myscopes, we should respect their inputted credential scopes and not override to https://management.azure.com/.default.

0reactions
iscai-msftcommented, Feb 2, 2021

@jianghaolu didn’t think about having a parameterized credential scope. I like the idea of adding /.default to the end of credential scopes and warning users this is what we’re doing. It seems like a good default 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Does 'scope:' do anything when using Client Credentials?
In the following code snippet, scope: does not seem to do anything. I have functions for getting the configuration of my tenant, applications, ......
Read more >
What Are Scopes and How Do They Relate to Claims? | Curity
In this article we take a closer look at scopes and discuss how to handle them properly. What are Scopes? A scope is...
Read more >
Need of scope in OAuth Client Credentials Flow
In case a client is requesting the access token for just a specific use case for which only a subset of scopes is...
Read more >
Scope of credential store since version 0.10.x - Boundary
Migrations during upgrade to version 0.10.x remove associations between targets and credential libraries that are not in the same project scope.
Read more >
How to use the SCOPE DISCUSSION FORUM - Global Site
Log into SCOPE DISCUSSION FORUM · Use the login button at the top-right hand side of the screen · Log in with your...
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