Skip to content
This repository was archived by the owner on Jul 5, 2023. It is now read-only.

Commit 663b8bd

Browse files
authored
release 1.4.0 (#195)
doc update
1 parent f6d775d commit 663b8bd

3 files changed

Lines changed: 7 additions & 10 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
[![Stories in Ready](https://badge.waffle.io/AzureAD/azure-activedirectory-library-for-java.png?label=ready&title=Ready)](https://waffle.io/AzureAD/azure-activedirectory-library-for-java)
21
[![Javadocs](http://javadoc.io/badge/com.microsoft.azure/adal4j.svg)](http://javadoc.io/doc/com.microsoft.azure/adal4j)
32
</br>
43
# Microsoft Azure Active Directory Authentication Library (ADAL) for Java
@@ -45,4 +44,6 @@ For log which might contains Pii(personally identifiable information) class name
4544
So, for the same class, for instance Foo, we define two loggers:
4645

4746
com.microsoft.aad.adal4j.Foo - no Pii data
47+
4848
adal4jPii.com.microsoft.aad.adal4j.Foo - might contain Pii data
49+

src/main/java/com/microsoft/aad/adal4j/AuthenticationContext.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -214,22 +214,18 @@ private Callable<AuthenticationResult> init(
214214
}
215215

216216
/**
217-
* Acquires a security token from the authority using a Refresh Token
218-
* previously received.
217+
* Acquires a security token from the authority using a username/password flow.
219218
*
220219
* @param clientId
221220
* Name or ID of the client requesting the token.
222221
* @param resource
223222
* Identifier of the target resource that is the recipient of the
224-
* requested token. If null, token is requested for the same
225-
* resource refresh token was originally issued for. If passed,
226-
* resource should match the original resource used to acquire
227-
* refresh token unless token service supports refresh token for
228-
* multiple resources.
223+
* requested token.
229224
* @param username
230225
* Username of the managed or federated user.
231226
* @param password
232227
* Password of the managed or federated user.
228+
* If null, integrated authentication will be used.
233229
* @param callback
234230
* optional callback object for non-blocking execution.
235231
* @return A {@link Future} object representing the
@@ -253,7 +249,7 @@ public Future<AuthenticationResult> acquireToken(final String resource,
253249

254250
ClientAuthenticationPost clientAuth = new ClientAuthenticationPost(ClientAuthenticationMethod.NONE, new ClientID(clientId));
255251

256-
if (!StringHelper.isBlank(password)) {
252+
if (password != null) {
257253
return this.acquireToken(new AdalAuthorizatonGrant(
258254
new ResourceOwnerPasswordCredentialsGrant(username, new Secret(
259255
password)), resource), clientAuth, callback);

src/samples/web-app-samples-for-adal4j/src/main/java/com/microsoft/aad/adal4jsample/AadController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public String getATForCaProtectedApiUsingOboService(ModelMap model, HttpServletR
199199
ClientCredential oboCredential = new ClientCredential(oboClientId, oboClientSecret);
200200

201201
future = context.acquireToken(caProtectedApiIdUri,
202-
new ClientAssertion(result.getAccessToken()), oboCredential, null);
202+
new UserAssertion(result.getAccessToken()), oboCredential, null);
203203

204204
result = future.get();
205205

0 commit comments

Comments
 (0)