Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Sinks.MssqlServer with Certificate Based Authentication #446

Unanswered
j-cade asked this question in Q&A
Discussion options

Is there any support for using this sink with a certificated based authentication model? My application uses CBA with Tokens to gain access to Azure SQL Database and I want to extend this access to Serilog logging.

You must be logged in to vote

Replies: 1 comment

Comment options

Hi @j-cade!

This sink relies on the (Azure) AD Authentication capabilities built into Microsofts SqlClient library.

I have not tested nor ever used this yet, but according to the documentation of SqlClient (https://learn.microsoft.com/en-us/sql/connect/ado-net/sql/azure-active-directory-authentication?view=sql-server-ver16#using-active-directory-default-authentication) if you specify Active Directory Default Authentication, you could use the environment variable AZURE_CLIENT_CERTIFICATE_PATH to specify a certificate.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /