-
Notifications
You must be signed in to change notification settings - Fork 43
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
Authenticate with device code #33
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You changed access level to public on the class and some methods. Is that really necessary?
AuthenticationResult result = null; | ||
ExecutorService service = null; | ||
try { | ||
service = Executors.newFixedThreadPool(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is not here the same as using: Executors.newSingleThreadExecutor()?
result = futureResult.get(); | ||
|
||
} finally { | ||
assert service != null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to if(service != null) ...
* Split Client and Service Exceptions in Data and Ingestion modules. * Add argument validation * Fix #13: Re-Design AzureStorageHelper - make the methods non static. (#31) * Fix #13: Re-Design AzureStorageHelper - make the methods non static. * Use IngestClientImpl instead of IngestClient * Authenticate with device code (#33) * authenticate interactively using a device code * fix browser popup * fix device code auth (#37) * Adding SourceInfo interface (#39) * Add SourceInfo interface to force implementing validate() in all SourceInfo classes * Rename SourceInfo abstract class and interface names * Authenticate with certificate (#41) * support certificate authetication * add method to authenticate with certificate * add method to authenticate with certificate objects * authenticate with certificate only with objects * add unit tests for authentication with certificate * move KeyCert to tests where its only use * extract mockito version to main pom file and delete unnecessary imports * cr changes * optimize imports * use bouncycastle in test scope only * remove unnecessary imports * Add getter and setter og SourceId to SourceInfo interface * cr fixes * Update data/src/main/java/com/microsoft/azure/kusto/data/ConnectionStringBuilder.java Co-Authored-By: LizaShak <[email protected]> * dont wait for user input * cr changes
Closes #5 and #14 allowing interactive authentication with device code