Skip to content

[QUERY] TokenCredential vs ServiceClientCredentials #24937

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

Closed
andrei-faber opened this issue Oct 26, 2021 · 6 comments
Closed

[QUERY] TokenCredential vs ServiceClientCredentials #24937

andrei-faber opened this issue Oct 26, 2021 · 6 comments
Assignees
Labels
Azure.Identity Client This issue points to a problem in the data-plane of the library. needs-author-feedback Workflow: More information is needed from author to address the issue. no-recent-activity There has been no recent activity on this issue. Synapse

Comments

@andrei-faber
Copy link

Query/Question
I have a C# function application with a system-assigned managed identity, and I need to use SynapseManagementClient from this app.
I authenticate using DefaultAzureCredential and that's enough to work with services that require TokenCredential (for instance ArmClient), but SynapseManagementClient requires ServiceClientCredentials instead which is not compatible with TokenCredential. How do I convert the credentials?

Environment:
Azure.Identity
Azure.ResourceManager
Microsoft.Azure.Management.Synapse

@ghost ghost added the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Oct 26, 2021
@jsquire jsquire added Azure.Identity Client This issue points to a problem in the data-plane of the library. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team labels Oct 26, 2021
@ghost ghost removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Oct 26, 2021
@jsquire
Copy link
Member

jsquire commented Oct 26, 2021

Thank you for your feedback. Tagging and routing to the team members best able to assist.

@christothes
Copy link
Member

christothes commented Oct 27, 2021

Assuming the synapse management plan would take a bearer token, I assume one could implement a ServiceClientCredentials that wraps a TokenCredential, but I think it depends more on the specific auth that the management plane requires.

Assigning to @ArthurMa1978 to comment.

@andrei-faber
Copy link
Author

@christothes how do I properly get bearer token from it?

@sopelt
Copy link
Contributor

sopelt commented Dec 16, 2021

Hi, we also came across this ... it would be nice if all Microsoft.Azure.Management.* libraries could support Azure.Identity.

@ArthurMa1978
Copy link
Member

ArthurMa1978 commented Jan 16, 2022

@andrei-faber, @sopelt thank for reaching us.
Microsoft.Azure.Management.* is track 1 that not support Azure.Identity, and only the new Azure.ResourceManager.* track 2 support.
To Synapse, we will upgrade it to track 2 soon

@ArthurMa1978 ArthurMa1978 added the needs-author-feedback Workflow: More information is needed from author to address the issue. label Feb 17, 2022
@ghost ghost removed the needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team label Feb 17, 2022
@ghost ghost added the no-recent-activity There has been no recent activity on this issue. label Feb 24, 2022
@ghost
Copy link

ghost commented Feb 24, 2022

Hi, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

@ghost ghost closed this as completed Mar 11, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2023
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Azure.Identity Client This issue points to a problem in the data-plane of the library. needs-author-feedback Workflow: More information is needed from author to address the issue. no-recent-activity There has been no recent activity on this issue. Synapse
Projects
None yet
Development

No branches or pull requests

7 participants
@sopelt @jsquire @christothes @schaabs @ArthurMa1978 @andrei-faber and others