Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Windows authentication support #63

Open
unybble opened this issue Jan 16, 2019 · 3 comments
Open

Windows authentication support #63

unybble opened this issue Jan 16, 2019 · 3 comments

Comments

@unybble
Copy link

unybble commented Jan 16, 2019

Describe the Feature

It would be nice if, for those on a Windows machine, there were a way to connect to a database instance using Windows Authentication. While I am not sure if the "web.config" is able to handle different connection strings, but the json formatted object has user and password attributes, which are not the format required for Windows Authentication

Suggested Solution

Is it possible to use the System.Security.Principal namespace to grab and/or validate the credentials? Or is there a way to store connection strings where user and password are not required? Instead have an optional field called "Integrated Security" which can be true or false?

Other Information

It could very well be that the Web.config is better able to handle less structured connection strings, but it was not clear to me in reading the documentation. Also, personally I am used to c# web.configs (along with the structure) -- I am unclear how a Web.config file for this application should be structured. Is it xml? What is the hierarchy? This feature request could very well be covered by this. If so, please include a sample Web.config.

@justinlettau
Copy link
Owner

It looks like Windows Authentication is possible, so I've added that to the roadmap.

In regards to connections in the Web.config ... a standard .NET XML config file is supported. I updated the readme with a few more details about connections in Web.config files.
https://github.com/justinlettau/sql-source-control#connections

@DanielOverdevest
Copy link

+1 we need to migrate to AD authentication, so it would be nice to implement this feature.

@blissi
Copy link

blissi commented May 13, 2020

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants