-1

I have a Service principal with a client id and client secret. It has permission to the Azure SQL DB. I want to use python to generate an access token and use it to authenticate to my sql server. Could someone guide me.

I am new with python and would appreciate if someone could specify if I need any supporting libraries for this to work.

1
  • You can refer to this post, Connect to Azure SQL using Service Principal. Commented Jun 13, 2022 at 7:41

1 Answer 1

0

I want to use python to generate an access token.

The Azure Active Directory Authentication library for python can be used to access SQL Server in Azure.

Refer this GitHub repository to know more details and how to implement the same.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.