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

Suggested changes after review #1

Merged
merged 1 commit into from
Jun 5, 2023

Conversation

David-Engel
Copy link

Allow credential with callback and pass to the callback, if available
Don't allow Authentication option with callback
Map to the correct FEDAUTHLIB_MSAL value
Add functional tests for connection options
Ensure callback is correctly set on the pool key in all cases
Other minor adjustments

Map to the correct FEDAUTHLIB_MSAL value
Add functional tests for connection options
Other minor adjustments
@@ -2191,7 +2183,7 @@ public static void ChangePassword(string connectionString, string newPassword)
throw ADP.InvalidArgumentLength(nameof(newPassword), TdsEnums.MAXLEN_NEWPASSWORD);
}

SqlConnectionPoolKey key = new SqlConnectionPoolKey(connectionString, credential: null, accessToken: null);
SqlConnectionPoolKey key = new SqlConnectionPoolKey(connectionString, credential: null, accessToken: null, accessTokenCallback: null);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we just make the argument required?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I started to do that, but then I would have had to move the new parameter before the optional ones and then update more code references. In the interest of time, I left it optional. 😄

@christothes christothes merged commit a4aca8f into christothes:chriss/ADCreds Jun 5, 2023
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

Successfully merging this pull request may close these issues.

2 participants