Skip to content
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

Oauth / AAD / Entra ID support for mssql #682

Open
jonaslb opened this issue Sep 9, 2024 · 1 comment
Open

Oauth / AAD / Entra ID support for mssql #682

jonaslb opened this issue Sep 9, 2024 · 1 comment

Comments

@jonaslb
Copy link

jonaslb commented Sep 9, 2024

We use OAuth / AzureDefaultCredential for authentication to mssql and I would like to use this with connectorx as well.

It looks like tiberius has support for this with the AADToken auth method: https://docs.rs/tiberius/0.12.3/tiberius/enum.AuthMethod.html#variant.AADToken. I haven't tested that it works, but I suppose this would basically accept the OAuth token that you get from AzureDefaultCredential.token.

There is, as far as I can see, currently no way to encode this token in the URL for connectorx. It could perhaps be a token parameter or it could be encoded in the user/password field somehow.

@jonaslb
Copy link
Author

jonaslb commented Sep 10, 2024

On second thought reading the comments in tiberius for AADToken, I'm not sure that it's an OAuth token. Maybe this request should go to tiberius instead.

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

No branches or pull requests

1 participant