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

Authenticate with device code #33

Merged
merged 4 commits into from
Oct 11, 2018
Merged

Conversation

LizaShak
Copy link
Member

Closes #5 and #14 allowing interactive authentication with device code

@tamirkamara tamirkamara requested a review from rabee333 October 11, 2018 22:43
Copy link
Contributor

@tamirkamara tamirkamara left a 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);
Copy link
Contributor

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;
Copy link
Contributor

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) ...

@rabee333 rabee333 merged commit d03c72a into OneWeek2018 Oct 11, 2018
@tamirkamara tamirkamara deleted the AuthenticateWithDeviceCode branch October 28, 2018 14:20
LizaShak pushed a commit that referenced this pull request Nov 13, 2018
* 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
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.

3 participants