-
Notifications
You must be signed in to change notification settings - Fork 154
making api more consistent and expressive #1
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,7 +64,7 @@ private void initClientAuthentication(String clientId){ | |
* {@link AuthenticationResult} of the call. It contains Access | ||
* Token, Refresh Token and the Access Token's expiration time. | ||
*/ | ||
public CompletableFuture<AuthenticationResult> acquireToken(String scopes, String username, String password) { | ||
public CompletableFuture<AuthenticationResult> acquireTokenByUsernamePassword(String scopes, String username, String password) { | ||
validateNotBlank("scopes", scopes); | ||
validateNotBlank("username", username); | ||
|
||
|
@@ -83,7 +83,7 @@ public CompletableFuture<AuthenticationResult> acquireToken(String scopes, Strin | |
* {@link AuthenticationResult} of the call. It contains Access | ||
* Token, Refresh Token and the Access Token's expiration time. | ||
*/ | ||
public CompletableFuture<AuthenticationResult> acquireToken(String scopes, String username) { | ||
public CompletableFuture<AuthenticationResult> acquireTokenByKerberosAuth(String scopes, String username) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Isn't this called IntegratedWindowsAuth in the .NET SDK? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, but these cased are different , Kerberos is platform agnostic |
||
validateNotBlank("scopes", scopes); | ||
validateNotBlank("username", username); | ||
|
||
|
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.
acquireTokenForClient seems a bit redundant. Is there a reason why we want to swtich from acquireToken to acquireTokenForClient?
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.
to be consistent with .NET naming