azure-sdk-for-cpp icon indicating copy to clipboard operation
azure-sdk-for-cpp copied to clipboard

Support of AuthFlow without client secret

Open ganapathysuresh opened this issue 2 years ago • 4 comments

Is your feature request related to a problem? Please describe. Azure Identity support ClientSecretCredential which is used to get token by supplying client secret. This is good for a confidential client. But for public client, we need to support the method of getting token without supplying the client secret

Describe the solution you'd like A new class derived from TokenCredential should be implemented which needs only Tenant id, client id and redirection url and the public client flow will be implemented in this new class , say PublicClientCredential

Describe alternatives you've considered This is only method inline with other TokenCredentials. So alternative considered as that will violate existing TokenCredentails

Additional context We need to attempt C# equivalent of PublicClientConfigurationBuilder. Also we may attempt to optionally support .NET feature of "withBroker" feature to support SSO

Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • [ X] Description Added
  • [ X] Expected solution specified

ganapathysuresh avatar Oct 21 '23 22:10 ganapathysuresh